feat(Compose): Move developer options to top level (#2528)

This commit is contained in:
Brosssh 2025-05-07 18:37:30 +02:00 committed by oSumAtrIX
parent 39e821738f
commit 02d2153195
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
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),