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:
inotia00
2024-12-21 13:38:12 +09:00
parent cd19073dd4
commit 1c06f2eee4
8 changed files with 101 additions and 37 deletions

View File

@ -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();
}
/**

View File

@ -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);