manager: Fix install button in module page
This commit is contained in:
@@ -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 {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user