fix(youtube/hide-shorts-components): clarify settings switch (#2276)

This commit is contained in:
LisoUseInAIKyrios 2023-05-26 21:43:04 +04:00 committed by GitHub
parent aa99a7b79c
commit 3e6d0528b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,12 +18,12 @@ class HideShortsComponentsResourcePatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult {
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
PreferenceScreen(
"revanced_shorts",
StringResource("revanced_shorts_title", "Shorts components"),
"revanced_shorts_preference_screen",
StringResource("revanced_shorts_preference_screen_title", "Shorts components"),
listOf(
SwitchPreference(
"revanced_hide_shorts",
StringResource("revanced_hide_shorts_enabled_title", "Hide shorts"),
StringResource("revanced_hide_shorts_title", "Hide shorts in feed"),
StringResource("revanced_hide_shorts_on", "Shorts are hidden"),
StringResource("revanced_hide_shorts_off", "Shorts are shown")
),
@ -70,7 +70,7 @@ class HideShortsComponentsResourcePatch : ResourcePatch {
StringResource("revanced_hide_shorts_navigation_bar_off", "Navigation bar is shown")
),
),
StringResource("revanced_shorts_summary", "Manage the visibility of Shorts components")
StringResource("revanced_shorts_preference_screen_summary", "Manage the visibility of Shorts components")
)
)