1
0
Fork 0
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:
Nikolay Pultsin 2012-03-16 07:42:21 +00:00
parent 15f3e8e3c1
commit 9d2cea64ec
7 changed files with 69 additions and 11143 deletions

View file

@ -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);