refactor(YouTube): Sort no title preference group by first sub preference title

This commit is contained in:
LisoUseInAIKyrios
2025-03-06 21:15:29 +02:00
parent 274df58056
commit fd6bc6ec36
3 changed files with 23 additions and 6 deletions

View File

@ -76,9 +76,7 @@ val spoofAppVersionPatch = bytecodePatch(
// Group the switch and list preference together, since General menu is sorted by name
// and the preferences can be scattered apart with non English langauges.
PreferenceCategory(
key = null,
// The title does not show, but is used for sorting the group.
titleKey = "revanced_spoof_app_version_title",
titleKey = null,
sorting = Sorting.UNSORTED,
tag = "app.revanced.extension.shared.settings.preference.NoTitlePreferenceCategory",
preferences = setOf(

View File

@ -101,8 +101,7 @@ val themePatch = bytecodePatch(
PreferenceScreen.SEEKBAR.addPreferences(
PreferenceCategory(
// Title is hidden, but is used for sorting the group.
titleKey = "revanced_seekbar_custom_color_title",
titleKey = null,
sorting = Sorting.UNSORTED,
tag = "app.revanced.extension.shared.settings.preference.NoTitlePreferenceCategory",
preferences = preferences