Skip to content

Commit

Permalink
feat(YouTube - Hide player flyout menu): Restore `Hide Ambient mode m…
Browse files Browse the repository at this point in the history
…enu` setting
  • Loading branch information
inotia00 authored and anddea committed Sep 6, 2024
1 parent 452a76d commit 3e3a43c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3e3a43c

Please sign in to comment.