mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
native plugin synchronization (fixed possible crash); fixed rtf encoding reading
This commit is contained in:
parent
3978af83ec
commit
3aa047e970
8 changed files with 24 additions and 22 deletions
|
@ -72,7 +72,7 @@ jmethodID AndroidUtil::MID_EncodingConverter_reset;
|
|||
jmethodID AndroidUtil::SMID_JavaEncodingCollection_Instance;
|
||||
jmethodID AndroidUtil::MID_JavaEncodingCollection_getEncoding_int;
|
||||
jmethodID AndroidUtil::MID_JavaEncodingCollection_getEncoding_String;
|
||||
jmethodID AndroidUtil::MID_JavaEncodingCollection_isEncodingSupported;
|
||||
jmethodID AndroidUtil::MID_JavaEncodingCollection_providesConverterFor;
|
||||
|
||||
jmethodID AndroidUtil::SMID_ZLFile_createFileByPath;
|
||||
jmethodID AndroidUtil::MID_ZLFile_children;
|
||||
|
@ -176,7 +176,7 @@ bool AndroidUtil::init(JavaVM* jvm) {
|
|||
CHECK_NULL( SMID_JavaEncodingCollection_Instance = env->GetStaticMethodID(cls, "Instance", "()Lorg/geometerplus/fbreader/formats/JavaEncodingCollection;") );
|
||||
CHECK_NULL( MID_JavaEncodingCollection_getEncoding_String = env->GetMethodID(cls, "getEncoding", "(Ljava/lang/String;)Lorg/geometerplus/fbreader/formats/Encoding;") );
|
||||
CHECK_NULL( MID_JavaEncodingCollection_getEncoding_int = env->GetMethodID(cls, "getEncoding", "(I)Lorg/geometerplus/fbreader/formats/Encoding;") );
|
||||
CHECK_NULL( MID_JavaEncodingCollection_isEncodingSupported = env->GetMethodID(cls, "isEncodingSupported", "(Ljava/lang/String;)Z") );
|
||||
CHECK_NULL( MID_JavaEncodingCollection_providesConverterFor = env->GetMethodID(cls, "providesConverterFor", "(Ljava/lang/String;)Z") );
|
||||
env->DeleteLocalRef(cls);
|
||||
|
||||
CHECK_NULL( cls = env->FindClass(Class_ZLFile) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue