manager: Fix install button in module page

This commit is contained in:
tiann
2023-03-01 14:22:46 +08:00
parent 203dc42e75
commit 0b1b73a05d

View File

@@ -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 {
{