mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-11 21:56:16 +00:00
fix(youtube/hide-shorts-components): clarify settings switch (#2276)
This commit is contained in:
committed by
GitHub
parent
2a5c092b93
commit
5f495c87c7
@@ -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")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user