mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(YouTube - Swipe controls): Change the setting name Enable watch panel gestures
to Disable watch panel gestures
, and change the setting name Enable swipe to change video
to Disable swipe to change video
This commit is contained in:
@ -20,15 +20,15 @@ public class SwipeControlsPatch {
|
||||
/**
|
||||
* Injection point.
|
||||
*/
|
||||
public static boolean enableSwipeToSwitchVideo() {
|
||||
return Settings.ENABLE_SWIPE_TO_SWITCH_VIDEO.get();
|
||||
public static boolean disableSwipeToSwitchVideo() {
|
||||
return !Settings.DISABLE_SWIPE_TO_SWITCH_VIDEO.get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Injection point.
|
||||
*/
|
||||
public static boolean enableWatchPanelGestures() {
|
||||
return Settings.ENABLE_WATCH_PANEL_GESTURES.get();
|
||||
public static boolean disableWatchPanelGestures() {
|
||||
return !Settings.DISABLE_WATCH_PANEL_GESTURES.get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -514,8 +514,8 @@ public class Settings extends BaseSettings {
|
||||
*/
|
||||
@Deprecated // Patch is obsolete and no longer works with 19.09+
|
||||
public static final BooleanSetting DISABLE_HDR_AUTO_BRIGHTNESS = new BooleanSetting("revanced_disable_hdr_auto_brightness", TRUE, true, parent(ENABLE_SWIPE_BRIGHTNESS));
|
||||
public static final BooleanSetting ENABLE_SWIPE_TO_SWITCH_VIDEO = new BooleanSetting("revanced_enable_swipe_to_switch_video", FALSE, true);
|
||||
public static final BooleanSetting ENABLE_WATCH_PANEL_GESTURES = new BooleanSetting("revanced_enable_watch_panel_gestures", FALSE, true);
|
||||
public static final BooleanSetting DISABLE_SWIPE_TO_SWITCH_VIDEO = new BooleanSetting("revanced_disable_swipe_to_switch_video", FALSE, true);
|
||||
public static final BooleanSetting DISABLE_WATCH_PANEL_GESTURES = new BooleanSetting("revanced_disable_watch_panel_gestures", FALSE, true);
|
||||
public static final BooleanSetting SWIPE_BRIGHTNESS_AUTO = new BooleanSetting("revanced_swipe_brightness_auto", TRUE, false, false);
|
||||
public static final FloatSetting SWIPE_BRIGHTNESS_VALUE = new FloatSetting("revanced_swipe_brightness_value", -1.0f, false, false);
|
||||
|
||||
|
Reference in New Issue
Block a user