diff --git a/src/android/kiwixreader.cpp b/src/android/kiwixreader.cpp index 9ffc7d90c..b11e4ef66 100644 --- a/src/android/kiwixreader.cpp +++ b/src/android/kiwixreader.cpp @@ -350,7 +350,7 @@ Java_org_kiwix_kiwixlib_JNIKiwixReader_searchSuggestions(JNIEnv* env, return retVal; } -JNIEXPORT jboolean JNICALL +/*JNIEXPORT jboolean JNICALL Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env, jobject obj, jobject titleObj) @@ -369,7 +369,7 @@ Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env, } return retVal; -} +}*/ JNIEXPORT jboolean JNICALL Java_org_kiwix_kiwixlib_JNIKiwixReader_getNextSuggestion(JNIEnv* env, diff --git a/src/android/org/kiwix/kiwixlib/JNIKiwixReader.java b/src/android/org/kiwix/kiwixlib/JNIKiwixReader.java index fb6e210c5..9f27384a0 100644 --- a/src/android/org/kiwix/kiwixlib/JNIKiwixReader.java +++ b/src/android/org/kiwix/kiwixlib/JNIKiwixReader.java @@ -102,7 +102,7 @@ public class JNIKiwixReader public native boolean searchSuggestions(String prefix, int count); - public native boolean getNextSuggestion(JNIKiwixString title); + /*public native boolean getNextSuggestion(JNIKiwixString title);*/ public native boolean getNextSuggestion(JNIKiwixString title, JNIKiwixString url); diff --git a/src/reader.cpp b/src/reader.cpp index 87cedc550..ef4e45335 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -902,20 +902,20 @@ bool Reader::searchSuggestionsSmart(const string& prefix, } /* Get next suggestion */ -bool Reader::getNextSuggestion(string& title) -{ - if (this->suggestionsOffset != this->suggestions.end()) { - /* title */ - title = (*(this->suggestionsOffset))[0]; +// bool Reader::getNextSuggestion(string& title) +// { +// if (this->suggestionsOffset != this->suggestions.end()) { +// /* title */ +// title = (*(this->suggestionsOffset))[0]; - /* increment the cursor for the next call */ - this->suggestionsOffset++; +// /* increment the cursor for the next call */ +// this->suggestionsOffset++; - return true; - } +// return true; +// } - return false; -} +// return false; +// } bool Reader::getNextSuggestion(string& title, string& url) {