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

Commit

Permalink
feat(YouTube - Shorts components): Add Hide paused header setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 authored and Francesco146 committed Jul 14, 2024
1 parent d43d139 commit 80b8058
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ public static int hideShortsSubscribeButton(int original) {
return Settings.HIDE_SHORTS_SUBSCRIBE_BUTTON.get() ? 0 : original;
}

public static boolean hideShortsPausedHeader() {
return Settings.HIDE_SHORTS_PAUSED_HEADER.get();
}

public static boolean hideShortsToolBar(boolean original) {
return !Settings.HIDE_SHORTS_TOOLBAR.get() && original;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public class Settings extends BaseSettings {
// PreferenceScreen: Shorts - Shorts player components
public static final BooleanSetting HIDE_SHORTS_JOIN_BUTTON = new BooleanSetting("revanced_hide_shorts_join_button", TRUE);
public static final BooleanSetting HIDE_SHORTS_SUBSCRIBE_BUTTON = new BooleanSetting("revanced_hide_shorts_subscribe_button", TRUE);
public static final BooleanSetting HIDE_SHORTS_PAUSED_HEADER = new BooleanSetting("revanced_hide_shorts_paused_header", FALSE, true);
public static final BooleanSetting HIDE_SHORTS_PAUSED_OVERLAY_BUTTONS = new BooleanSetting("revanced_hide_shorts_paused_overlay_buttons", FALSE);
public static final BooleanSetting HIDE_SHORTS_PAID_PROMOTION_LABEL = new BooleanSetting("revanced_hide_shorts_paid_promotion_label", TRUE, true);
public static final BooleanSetting HIDE_SHORTS_SHOP_BUTTON = new BooleanSetting("revanced_hide_shorts_shop_button", TRUE);
Expand Down

0 comments on commit 80b8058

Please sign in to comment.