From 41f5c8d96c0aefa0907229f397369ab0a414f96c Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 24 Sep 2020 03:16:43 -0700 Subject: [PATCH] Magisk Manager always have to be upgraded first --- app/src/main/res/layout/include_home_magisk.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/res/layout/include_home_magisk.xml b/app/src/main/res/layout/include_home_magisk.xml index 9a8914e5f..51602175e 100644 --- a/app/src/main/res/layout/include_home_magisk.xml +++ b/app/src/main/res/layout/include_home_magisk.xml @@ -55,6 +55,7 @@ android:id="@+id/home_magisk_button" style="@style/WidgetFoundation.Button" invisible="@{viewModel.stateMagisk != MagiskState.OBSOLETE}" + android:enabled="@{viewModel.stateManager != MagiskState.OBSOLETE}" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="@{() -> viewModel.onMagiskPressed()}" @@ -68,6 +69,7 @@