mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
Member class
This commit is contained in:
parent
18e14a29de
commit
266249bd6f
3 changed files with 34 additions and 13 deletions
|
@ -297,14 +297,13 @@ void AndroidUtil::throwRuntimeException(JNIEnv *env, const std::string &message)
|
|||
/*
|
||||
void AndroidUtil::throwBookReadingException(const std::string &resourceId, const ZLFile &file) {
|
||||
JNIEnv *env = getEnv();
|
||||
jclass cls = env->FindClass("org/geometerplus/fbreader/bookmodel/BookReadingException");
|
||||
env->CallStaticVoidMethod(
|
||||
cls,
|
||||
Class_BookReadingException->j(),
|
||||
StaticMethod_BookReadingException_throwForFile,
|
||||
AndroidUtil::createJavaString(env, resourceId),
|
||||
AndroidUtil::createJavaFile(env, file.path())
|
||||
);
|
||||
// TODO: possible memory leak
|
||||
// TODO: clear cls & ZLFile object references
|
||||
// TODO: clear ZLFile object reference
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue