Skip to content

Commit

Permalink
feat(YouTube Music/Player components): add settings `Disable miniplay…
Browse files Browse the repository at this point in the history
…er gesture`, `Disable player gesture` inotia00/ReVanced_Extended#2097
  • Loading branch information
inotia00 committed Jul 30, 2024
1 parent 6559e9a commit e0418ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public class PlayerPatch {
@SuppressLint("StaticFieldLeak")
public static View nextButton;

public static boolean disableMiniPlayerGesture() {
return Settings.DISABLE_MINI_PLAYER_GESTURE.get();
}

public static boolean disablePlayerGesture() {
return Settings.DISABLE_PLAYER_GESTURE.get();
}

public static boolean enableColorMatchPlayer() {
return Settings.ENABLE_COLOR_MATCH_PLAYER.get();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public class Settings extends BaseSettings {


// PreferenceScreen: Player
public static final BooleanSetting DISABLE_MINI_PLAYER_GESTURE = new BooleanSetting("revanced_disable_mini_player_gesture", FALSE, true);
public static final BooleanSetting DISABLE_PLAYER_GESTURE = new BooleanSetting("revanced_disable_player_gesture", FALSE, true);
public static final BooleanSetting ENABLE_BLACK_PLAYER_BACKGROUND = new BooleanSetting("revanced_enable_black_player_background", FALSE, true);
public static final BooleanSetting ENABLE_COLOR_MATCH_PLAYER = new BooleanSetting("revanced_enable_color_match_player", TRUE);
public static final BooleanSetting ENABLE_FORCE_MINIMIZED_PLAYER = new BooleanSetting("revanced_enable_force_minimized_player", TRUE);
Expand Down

0 comments on commit e0418ff

Please sign in to comment.