From 3fb1ce9f9af150b784e42aaf5b419bb123c08375 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 18 Jun 2023 18:48:13 +0200 Subject: [PATCH] feat(youtube/hide-layout-components): separate hiding expandable chips and chapters --- .../patch/HideLayoutComponentsPatch.kt | 29 ++++++++++++++----- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt index d67abf604..203d22ca5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/patch/HideLayoutComponentsPatch.kt @@ -45,18 +45,33 @@ class HideLayoutComponentsPatch : ResourcePatch { ) ), SwitchPreference( - "revanced_hide_chapter_teaser", + "revanced_hide_expandable_chip", StringResource( - "revanced_hide_chapter_teaser_title", - "Hide chapter teaser under videos" + "revanced_hide_expandable_chip_title", + "Hide the expandable chip under videos" ), StringResource( - "revanced_hide_chapter_teaser_summary_on", - "Chapter teasers are hidden" + "revanced_hide_expandable_chip_summary_on", + "Expandable chips are hidden" ), StringResource( - "revanced_hide_chapter_teaser_summary_off", - "Chapter teasers are shown" + "revanced_hide_expandable_chip_summary_off", + "Expandable chips are shown" + ) + ), + SwitchPreference( + "revanced_hide_chapters", + StringResource( + "revanced_hide_chapters_title", + "Hide chapters in the video description" + ), + StringResource( + "revanced_hide_chapters_summary_on", + "Chapters are hidden" + ), + StringResource( + "revanced_hide_chapters_summary_off", + "Chapters are shown" ) ), SwitchPreference(