mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
encoding detection fixes
This commit is contained in:
parent
c849daa8e8
commit
f0cc6dda87
7 changed files with 28 additions and 10 deletions
|
@ -90,6 +90,7 @@ jmethodID AndroidUtil::MID_Book_setLanguage;
|
|||
jmethodID AndroidUtil::MID_Book_setEncoding;
|
||||
jmethodID AndroidUtil::MID_Book_addAuthor;
|
||||
jmethodID AndroidUtil::MID_Book_addTag;
|
||||
jmethodID AndroidUtil::MID_Book_save;
|
||||
|
||||
jmethodID AndroidUtil::SMID_Tag_getTag;
|
||||
|
||||
|
@ -196,6 +197,7 @@ bool AndroidUtil::init(JavaVM* jvm) {
|
|||
CHECK_NULL( MID_Book_setEncoding = env->GetMethodID(cls, "setEncoding", "(Ljava/lang/String;)V") );
|
||||
CHECK_NULL( MID_Book_addAuthor = env->GetMethodID(cls, "addAuthor", "(Ljava/lang/String;Ljava/lang/String;)V") );
|
||||
CHECK_NULL( MID_Book_addTag = env->GetMethodID(cls, "addTag", "(Lorg/geometerplus/fbreader/library/Tag;)V") );
|
||||
CHECK_NULL( MID_Book_save = env->GetMethodID(cls, "save", "()Z") );
|
||||
env->DeleteLocalRef(cls);
|
||||
|
||||
CHECK_NULL( cls = env->FindClass(Class_Tag) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue