From f37819ce7d48ca87f614fefbe5c01f3a62255f56 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Tue, 23 Jan 2024 07:13:38 +0900 Subject: [PATCH] feat(YouTube Music/Hide player flyout panel): add `Hide subscribe / unsubscribe menu`, `Hide sleep timer menu` settings --- .../music/flyoutpanel/component/FlyoutPanelPatch.kt | 10 ++++++++++ .../resources/music/settings/host/values/strings.xml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt b/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt index 2de72393a..798b97df8 100644 --- a/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/flyoutpanel/component/FlyoutPanelPatch.kt @@ -203,6 +203,11 @@ object FlyoutPanelPatch : BytecodePatch( "revanced_hide_flyout_panel_shuffle_play", "false" ) + SettingsPatch.addMusicPreferenceWithoutSummary( + CategoryType.FLYOUT, + "revanced_hide_flyout_panel_sleep_timer", + "false" + ) SettingsPatch.addMusicPreferenceWithoutSummary( CategoryType.FLYOUT, "revanced_hide_flyout_panel_start_radio", @@ -213,6 +218,11 @@ object FlyoutPanelPatch : BytecodePatch( "revanced_hide_flyout_panel_stats_for_nerds", "false" ) + SettingsPatch.addMusicPreferenceWithoutSummary( + CategoryType.FLYOUT, + "revanced_hide_flyout_panel_subscribe", + "false" + ) SettingsPatch.addMusicPreferenceWithoutSummary( CategoryType.FLYOUT, "revanced_hide_flyout_panel_view_song_credit", diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml index e6c932adc..0151eb61a 100644 --- a/src/main/resources/music/settings/host/values/strings.xml +++ b/src/main/resources/music/settings/host/values/strings.xml @@ -141,8 +141,10 @@ WARNING: Do not enable "New player background" while this is enabled." Hide save to playlist menu Hide share menu Hide shuffle play menu + Hide sleep timer menu Hide start radio menu Hide stats for nerds menu + Hide subscribe / unsubscribe menu Hide view song credit menu Hides general ads. Hide general ads