mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Refactor code
This commit is contained in:
parent
04371325ad
commit
c2412dee6c
@ -102,10 +102,10 @@ class ZimFileReader(
|
||||
fun getNextSuggestion(): SearchSuggestion? {
|
||||
val title = JNIKiwixString()
|
||||
val url = JNIKiwixString()
|
||||
if (jniKiwixReader.getNextSuggestion(title, url)) {
|
||||
return SearchSuggestion(title.value, url.value)
|
||||
}
|
||||
return null
|
||||
|
||||
return if (jniKiwixReader.getNextSuggestion(title, url))
|
||||
SearchSuggestion(title.value, url.value)
|
||||
else null
|
||||
}
|
||||
|
||||
fun getPageUrlFrom(title: String): String? =
|
||||
|
Loading…
x
Reference in New Issue
Block a user