Move developer options to top level

This commit is contained in:
brosssh 2025-05-07 09:50:24 +02:00
parent 5555373deb
commit 09bc05ad77
3 changed files with 9 additions and 8 deletions

View file

@ -277,6 +277,10 @@ private fun ReVancedManager(vm: MainViewModel) {
AdvancedSettingsScreen(onBackClick = navController::popBackStack)
}
composable<Settings.DeveloperOptions> {
DeveloperOptionsScreen(onBackClick = navController::popBackStack)
}
composable<Settings.Updates> {
UpdatesSettingsScreen(
onBackClick = navController::popBackStack,
@ -312,9 +316,6 @@ private fun ReVancedManager(vm: MainViewModel) {
LicensesScreen(onBackClick = navController::popBackStack)
}
composable<Settings.DeveloperOptions> {
DeveloperOptionsScreen(onBackClick = navController::popBackStack)
}
}
}
}

View file

@ -41,6 +41,11 @@ private val settingsSections = listOf(
R.string.advanced_description,
Icons.Outlined.Tune
) to Settings.Advanced,
Triple(
R.string.developer_options,
R.string.developer_options_description,
Icons.Outlined.Code
) to Settings.DeveloperOptions,
Triple(
R.string.about,
R.string.app_name,

View file

@ -126,11 +126,6 @@ fun AboutSettingsScreen(
navigate(Settings.Contributors)
}
),
Triple(
stringResource(R.string.developer_options),
stringResource(R.string.developer_options_description),
third = { navigate(Settings.DeveloperOptions) }
),
Triple(
stringResource(R.string.opensource_licenses),
stringResource(R.string.opensource_licenses_description),