From 60e89a7d221ea68e7cd470198b5fbb70f8e128d1 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 1 Dec 2020 01:13:13 +0800 Subject: [PATCH] Ignore manager not installed state --- .../main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt index 13430ca65..eb68ee22a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeViewModel.kt @@ -90,7 +90,6 @@ class HomeViewModel( } stateManager = when { - !app.isUpdateChannelCorrect && isConnected.get() -> MagiskState.NOT_INSTALLED app.isObsolete -> MagiskState.OBSOLETE else -> MagiskState.UP_TO_DATE } @@ -170,8 +169,6 @@ class HomeViewModel( private val MagiskJson.isObsolete get() = Info.env.isActive && Info.env.magiskVersionCode < versionCode - private val ManagerJson.isUpdateChannelCorrect - get() = versionCode > 0 private val ManagerJson.isObsolete get() = BuildConfig.VERSION_CODE < versionCode