mirror of
https://github.com/revanced/revanced-patches
synced 2024-09-03 21:15:26 +02:00
fix(youtube/hide-shorts-components): clarify settings switch (#2276)
This commit is contained in:
parent
aa99a7b79c
commit
3e6d0528b2
@ -18,12 +18,12 @@ class HideShortsComponentsResourcePatch : ResourcePatch {
|
|||||||
override fun execute(context: ResourceContext): PatchResult {
|
override fun execute(context: ResourceContext): PatchResult {
|
||||||
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
||||||
PreferenceScreen(
|
PreferenceScreen(
|
||||||
"revanced_shorts",
|
"revanced_shorts_preference_screen",
|
||||||
StringResource("revanced_shorts_title", "Shorts components"),
|
StringResource("revanced_shorts_preference_screen_title", "Shorts components"),
|
||||||
listOf(
|
listOf(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_hide_shorts",
|
"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_on", "Shorts are hidden"),
|
||||||
StringResource("revanced_hide_shorts_off", "Shorts are shown")
|
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_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")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user