You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: dont show developer options and banner toggle when ksuversion is null
This commit is contained in:
@@ -95,6 +95,7 @@ fun CustomizationScreen(navigator: DestinationsNavigator) {
|
|||||||
prefs.getBoolean("use_banner", true)
|
prefs.getBoolean("use_banner", true)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
if (ksuVersion != null) {
|
||||||
SwitchItem(
|
SwitchItem(
|
||||||
icon = Icons.Filled.ViewCarousel,
|
icon = Icons.Filled.ViewCarousel,
|
||||||
title = stringResource(id = R.string.settings_banner),
|
title = stringResource(id = R.string.settings_banner),
|
||||||
@@ -104,6 +105,7 @@ fun CustomizationScreen(navigator: DestinationsNavigator) {
|
|||||||
prefs.edit().putBoolean("use_banner", it).apply()
|
prefs.edit().putBoolean("use_banner", it).apply()
|
||||||
useBanner = it
|
useBanner = it
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var enableAmoled by rememberSaveable {
|
var enableAmoled by rememberSaveable {
|
||||||
mutableStateOf(
|
mutableStateOf(
|
||||||
|
|||||||
@@ -349,6 +349,7 @@ fun SettingScreen(navigator: DestinationsNavigator) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val developer = stringResource(id = R.string.developer)
|
val developer = stringResource(id = R.string.developer)
|
||||||
|
if (ksuVersion != null) {
|
||||||
ListItem(
|
ListItem(
|
||||||
leadingContent = {
|
leadingContent = {
|
||||||
Icon(
|
Icon(
|
||||||
@@ -361,6 +362,7 @@ fun SettingScreen(navigator: DestinationsNavigator) {
|
|||||||
navigator.navigate(DeveloperScreenDestination)
|
navigator.navigate(DeveloperScreenDestination)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
val lkmMode = Natives.version >= Natives.MINIMAL_SUPPORTED_KERNEL_LKM && Natives.isLkmMode
|
val lkmMode = Natives.version >= Natives.MINIMAL_SUPPORTED_KERNEL_LKM && Natives.isLkmMode
|
||||||
if (lkmMode) {
|
if (lkmMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user