Index: libadblockplus-android/jni/Utils.cpp |
diff --git a/libadblockplus-android/jni/Utils.cpp b/libadblockplus-android/jni/Utils.cpp |
index 6c1b9274c417a4cfa8f93b37314d858bae94c188..3418417501da776b176e499eb96306e4bb3279b3 100644 |
--- a/libadblockplus-android/jni/Utils.cpp |
+++ b/libadblockplus-android/jni/Utils.cpp |
@@ -33,6 +33,11 @@ std::string JniJavaToStdString(JNIEnv* env, jstring str) |
return ret; |
} |
+jstring JniStdStringToJava(JNIEnv* env, std::string str) |
+{ |
+ return env->NewStringUTF(str.c_str()); |
+} |
+ |
jobject NewJniArrayList(JNIEnv* env) |
{ |
JniLocalReference<jclass> clazz(env, env->FindClass("java/util/ArrayList")); |