diff --git a/app/src/main/java/app/revanced/integrations/music/patches/player/PlayerPatch.java b/app/src/main/java/app/revanced/integrations/music/patches/player/PlayerPatch.java index c461119288..13b442ceaa 100644 --- a/app/src/main/java/app/revanced/integrations/music/patches/player/PlayerPatch.java +++ b/app/src/main/java/app/revanced/integrations/music/patches/player/PlayerPatch.java @@ -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(); } diff --git a/app/src/main/java/app/revanced/integrations/music/settings/Settings.java b/app/src/main/java/app/revanced/integrations/music/settings/Settings.java index d388470694..e13ff6651e 100644 --- a/app/src/main/java/app/revanced/integrations/music/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/music/settings/Settings.java @@ -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);