fix(youtube/hide-info-cards): fix hide-info-cards setting does not work (#2246)

This commit is contained in:
LisoUseInAIKyrios 2023-05-25 10:10:16 +04:00 committed by GitHub
parent d27c39114f
commit 72773ac569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,10 +23,10 @@ class HideInfocardsResourcePatch : ResourcePatch {
override fun execute(context: ResourceContext): PatchResult {
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
SwitchPreference(
"revanced_hide_infocards",
StringResource("revanced_hide_infocards_title", "Hide info cards"),
StringResource("revanced_hide_infocards_summary_on", "Info cards are hidden"),
StringResource("revanced_hide_infocards_summary_off", "Info cards are shown")
"revanced_hide_info_cards",
StringResource("revanced_hide_info_cards_title", "Hide info cards"),
StringResource("revanced_hide_info_cards_summary_on", "Info cards are hidden"),
StringResource("revanced_hide_info_cards_summary_off", "Info cards are shown")
)
)