diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/player/PlayerPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/player/PlayerPatch.java index 4ca5ad8a2d..183c41a2c3 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/player/PlayerPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/player/PlayerPatch.java @@ -471,7 +471,13 @@ public static void hideSuggestedActions(View view) { hideViewUnderCondition(Settings.HIDE_SUGGESTED_ACTION.get(), view); } + public static boolean hideSuggestedVideoEndScreen() { + return Settings.HIDE_SUGGESTED_VIDEO_END_SCREEN.get(); + } + public static void skipAutoPlayCountdown(View view) { + if (!hideSuggestedVideoEndScreen()) + return; if (!Settings.SKIP_AUTOPLAY_COUNTDOWN.get()) return; 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 fea33315ef..8ef9e62209 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 @@ -191,10 +191,9 @@ public class Settings extends BaseSettings { public static final BooleanSetting HIDE_SEEK_MESSAGE = new BooleanSetting("revanced_hide_seek_message", FALSE, true); public static final BooleanSetting HIDE_SEEK_UNDO_MESSAGE = new BooleanSetting("revanced_hide_seek_undo_message", FALSE, true); public static final BooleanSetting HIDE_SUGGESTED_ACTION = new BooleanSetting("revanced_hide_suggested_actions", TRUE, true); - @Deprecated - public static final BooleanSetting HIDE_SUGGESTED_VIDEO_END_SCREEN = new BooleanSetting("revanced_hide_suggested_video_end_screen", FALSE); public static final BooleanSetting HIDE_TIMED_REACTIONS = new BooleanSetting("revanced_hide_timed_reactions", TRUE); - public static final BooleanSetting SKIP_AUTOPLAY_COUNTDOWN = new BooleanSetting("revanced_skip_autoplay_countdown", FALSE, true); + public static final BooleanSetting HIDE_SUGGESTED_VIDEO_END_SCREEN = new BooleanSetting("revanced_hide_suggested_video_end_screen", TRUE, true); + public static final BooleanSetting SKIP_AUTOPLAY_COUNTDOWN = new BooleanSetting("revanced_skip_autoplay_countdown", FALSE, true, parent(HIDE_SUGGESTED_VIDEO_END_SCREEN)); // PreferenceScreen: Player - Action buttons