Index: libadblockplus-android/jni/Utils.cpp |
diff --git a/libadblockplus-android/jni/Utils.cpp b/libadblockplus-android/jni/Utils.cpp |
index 6e24d46229002e937d441e194c40ec773c7105da..124abfe44b6bd0322a278f0b52434a76103e6057 100644 |
--- a/libadblockplus-android/jni/Utils.cpp |
+++ b/libadblockplus-android/jni/Utils.cpp |
@@ -105,7 +105,7 @@ jstring JniStdStringToJava(JNIEnv* env, std::string str) |
bool stringBeginsWith(const std::string& string, const std::string& beginning) |
{ |
- return string.compare(0, beginning.length(), beginning); |
+ return string.compare(0, beginning.length(), beginning) == 0; |
sergei
2017/09/28 10:49:38
It was a stupid mistake and it was working sometim
|
} |
jobject NewJniArrayList(JNIEnv* env) |