Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
feat(YouTube - Player components): Add setting toggle for `Hide sugge…
Browse files Browse the repository at this point in the history
…sted video end screen`
  • Loading branch information
inotia00 authored and anddea committed May 28, 2024
1 parent 7098156 commit d020bc8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d020bc8

Please sign in to comment.