mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
ZLUnicodeUtil is now based on java String methods
This commit is contained in:
parent
15f3e8e3c1
commit
9d2cea64ec
7 changed files with 69 additions and 11143 deletions
|
@ -30,8 +30,8 @@
|
|||
|
||||
static shared_ptr<FormatPlugin> findCppPlugin(JNIEnv *env, jobject base) {
|
||||
jstring fileTypeJava = (jstring)env->CallObjectMethod(base, AndroidUtil::MID_NativeFormatPlugin_supportedFileType);
|
||||
std::string fileTypeCpp;
|
||||
AndroidUtil::extractJavaString(env, fileTypeJava, fileTypeCpp);
|
||||
const std::string fileTypeCpp = AndroidUtil::fromJavaString(env, fileTypeJava);
|
||||
env->DeleteLocalRef(fileTypeJava);
|
||||
shared_ptr<FormatPlugin> plugin = PluginCollection::Instance().pluginByType(fileTypeCpp);
|
||||
if (plugin.isNull()) {
|
||||
AndroidUtil::throwRuntimeException(env, "Native FormatPlugin instance is NULL for type " + fileTypeCpp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue