From b5e63c11ab21a89e912dd41e307631f479e0ba96 Mon Sep 17 00:00:00 2001 From: nullptr <107796137+johnconner122@users.noreply.github.com> Date: Fri, 3 Nov 2023 23:27:32 +0500 Subject: [PATCH] fix(YouTube - Player flyout menu): Restore functionality (#3163) --- .../flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt index 1d8c32fe..a6085a4f 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/player/flyoutmenupanel/HidePlayerFlyoutMenuPatch.kt @@ -8,6 +8,7 @@ import app.revanced.patches.shared.settings.preference.impl.PreferenceScreen import app.revanced.patches.shared.settings.preference.impl.StringResource import app.revanced.patches.shared.settings.preference.impl.SwitchPreference import app.revanced.patches.youtube.misc.litho.filter.LithoFilterPatch +import app.revanced.patches.youtube.misc.playertype.PlayerTypeHookPatch import app.revanced.patches.youtube.misc.settings.SettingsPatch @Patch( @@ -15,6 +16,7 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch description = "Hides player flyout menu items.", dependencies = [ LithoFilterPatch::class, + PlayerTypeHookPatch::class, SettingsPatch::class ], compatiblePackages = [ @@ -43,18 +45,18 @@ object HidePlayerFlyoutMenuPatch : ResourcePatch() { KEY, StringResource("${KEY}_title", "Player flyout menu items"), listOf( - SwitchPreference( - "${KEY}_quality", - StringResource("${KEY}_quality_title", "Hide Quality menu"), - StringResource("${KEY}_quality_on", "Quality menu item is hidden"), - StringResource("${KEY}_quality_off", "Quality menu item is shown") - ), SwitchPreference( "${KEY}_captions", StringResource("${KEY}_captions_title", "Hide Captions menu"), StringResource("${KEY}_captions_on", "Captions menu item is hidden"), StringResource("${KEY}_captions_off", "Captions menu item is shown") ), + SwitchPreference( + "${KEY}_additional_settings", + StringResource("${KEY}_additional_settings_title", "Hide Additional settings menu"), + StringResource("${KEY}_additional_settings_on", "Additional settings menu item is hidden"), + StringResource("${KEY}_additional_settings_off", "Additional settings menu item is shown") + ), SwitchPreference( "${KEY}_loop_video", StringResource("${KEY}_loop_video_title", "Hide Loop video menu"),