From 0b1b73a05d11e45a088e3ece027b74605c0c1370 Mon Sep 17 00:00:00 2001 From: tiann Date: Wed, 1 Mar 2023 14:22:46 +0800 Subject: [PATCH] manager: Fix install button in module page --- .../app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt index cab5557e2bc6..94a51ca1b744 100644 --- a/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt +++ b/manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt @@ -55,11 +55,11 @@ fun ModuleScreen(navigator: DestinationsNavigator) { val isSafeMode = Natives.isSafeMode() val hasMagisk = hasMagisk() - val showInstallButton = !(isSafeMode || hasMagisk) + val hideInstallButton = isSafeMode || hasMagisk Scaffold(topBar = { TopBar() - }, floatingActionButton = if (showInstallButton) { + }, floatingActionButton = if (hideInstallButton) { { /* Empty */ } } else { {