0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-27 05:23:00 +00:00

fixed build

This commit is contained in:
X1nto 2020-07-12 22:40:01 +04:00
parent a694b74e0f
commit 2272c21dd8

View file

@ -58,7 +58,7 @@ object InternetTools {
suspend fun isUpdateAvailable(): Boolean { suspend fun isUpdateAvailable(): Boolean {
val result = JsonHelper.getJson("https://x1nto.github.io/VancedFiles/manager.json") val result = JsonHelper.getJson("https://x1nto.github.io/VancedFiles/manager.json")
val remoteVersion = result.int("versionCode") val remoteVersion = result.int("versionCode") ?: 0
return remoteVersion > BuildConfig.VERSION_CODE return remoteVersion > BuildConfig.VERSION_CODE
} }