mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
#12 Make three options to deactivate sidebars, tabs and reading - fix codefactor issue
This commit is contained in:
parent
226e787f66
commit
ec3fa542cb
@ -51,8 +51,8 @@ data class CustomApp(
|
||||
|
||||
companion object {
|
||||
private fun readVersionOrInfer(parsedJson: JSONObject) =
|
||||
(parsedJson.getAndCast("version_name")
|
||||
?: versionNameFromUrl(parsedJson.getAndCast("zim_url")))
|
||||
parsedJson.getAndCast("version_name")
|
||||
?: versionNameFromUrl(parsedJson.getAndCast("zim_url"))
|
||||
?: formatCurrentDate()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user