mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -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 {
|
companion object {
|
||||||
private fun readVersionOrInfer(parsedJson: JSONObject) =
|
private fun readVersionOrInfer(parsedJson: JSONObject) =
|
||||||
(parsedJson.getAndCast("version_name")
|
parsedJson.getAndCast("version_name")
|
||||||
?: versionNameFromUrl(parsedJson.getAndCast("zim_url")))
|
?: versionNameFromUrl(parsedJson.getAndCast("zim_url"))
|
||||||
?: formatCurrentDate()
|
?: formatCurrentDate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user