From 2272c21dd8bbfeaae9980d3585850d748cf71094 Mon Sep 17 00:00:00 2001 From: X1nto Date: Sun, 12 Jul 2020 22:40:01 +0400 Subject: [PATCH] fixed build --- app/src/main/java/com/vanced/manager/utils/InternetTools.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vanced/manager/utils/InternetTools.kt b/app/src/main/java/com/vanced/manager/utils/InternetTools.kt index 0f583981..1f2df351 100644 --- a/app/src/main/java/com/vanced/manager/utils/InternetTools.kt +++ b/app/src/main/java/com/vanced/manager/utils/InternetTools.kt @@ -58,7 +58,7 @@ object InternetTools { suspend fun isUpdateAvailable(): Boolean { 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 }