diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/PlayerFlyoutMenuFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/PlayerFlyoutMenuFilter.java index 6f2bcaad3..14546b615 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/PlayerFlyoutMenuFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/PlayerFlyoutMenuFilter.java @@ -61,6 +61,10 @@ public PlayerFlyoutMenuFilter() { ); flyoutFilterGroupList.addAll( + new ByteArrayFilterGroup( + Settings.HIDE_PLAYER_FLYOUT_MENU_AMBIENT, + "yt_outline_screen_light" + ), new ByteArrayFilterGroup( Settings.HIDE_PLAYER_FLYOUT_MENU_AUDIO_TRACK, "yt_outline_person_radar" diff --git a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java index 5931cac75..ef44c29a1 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java @@ -265,6 +265,7 @@ public class Settings extends BaseSettings { public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_REPORT = new BooleanSetting("revanced_hide_player_flyout_menu_report", TRUE); public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_ADDITIONAL_SETTINGS = new BooleanSetting("revanced_hide_player_flyout_menu_additional_settings", FALSE); + public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_AMBIENT = new BooleanSetting("revanced_hide_player_flyout_menu_ambient_mode", FALSE); public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_HELP = new BooleanSetting("revanced_hide_player_flyout_menu_help", TRUE); public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_LOOP = new BooleanSetting("revanced_hide_player_flyout_menu_loop_video", FALSE); public static final BooleanSetting HIDE_PLAYER_FLYOUT_MENU_PIP = new BooleanSetting("revanced_hide_player_flyout_menu_pip", TRUE, true); diff --git a/app/src/main/java/app/revanced/integrations/youtube/utils/ExtendedUtils.java b/app/src/main/java/app/revanced/integrations/youtube/utils/ExtendedUtils.java index 477cc36ad..9e8a43fb1 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/utils/ExtendedUtils.java +++ b/app/src/main/java/app/revanced/integrations/youtube/utils/ExtendedUtils.java @@ -67,6 +67,7 @@ public static void setCommentPreviewSettings() { } private static final Setting[] additionalSettings = { + Settings.HIDE_PLAYER_FLYOUT_MENU_AMBIENT, Settings.HIDE_PLAYER_FLYOUT_MENU_HELP, Settings.HIDE_PLAYER_FLYOUT_MENU_LOOP, Settings.HIDE_PLAYER_FLYOUT_MENU_PIP, @@ -99,6 +100,7 @@ private static boolean isAdditionalSettingsEnabled() { boolean additionalSettingsEnabled = true; final BooleanSetting[] additionalSettings = { + Settings.HIDE_PLAYER_FLYOUT_MENU_AMBIENT, Settings.HIDE_PLAYER_FLYOUT_MENU_HELP, Settings.HIDE_PLAYER_FLYOUT_MENU_LOOP, Settings.HIDE_PLAYER_FLYOUT_MENU_PIP,