diff --git a/app/src/main/java/app/revanced/integrations/patches/DisableFineScrubbingGesturePatch.java b/app/src/main/java/app/revanced/integrations/patches/DisablePreciseSeekingGesturePatch.java similarity index 70% rename from app/src/main/java/app/revanced/integrations/patches/DisableFineScrubbingGesturePatch.java rename to app/src/main/java/app/revanced/integrations/patches/DisablePreciseSeekingGesturePatch.java index 72a6859065..8043bd2114 100644 --- a/app/src/main/java/app/revanced/integrations/patches/DisableFineScrubbingGesturePatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/DisablePreciseSeekingGesturePatch.java @@ -4,14 +4,14 @@ import android.view.VelocityTracker; import app.revanced.integrations.settings.SettingsEnum; -public final class DisableFineScrubbingGesturePatch { +public final class DisablePreciseSeekingGesturePatch { /** - * Disables the fine scrubbing gesture. + * Disables the gesture that is used to seek precisely. * @param tracker The velocity tracker that is used to determine the gesture. * @param event The motion event that is used to determine the gesture. */ public static void disableGesture(VelocityTracker tracker, MotionEvent event) { - if (SettingsEnum.DISABLE_FINE_SCRUBBING_GESTURE.getBoolean()) return; + if (SettingsEnum.DISABLE_PRECISE_SEEKING_GESTURE.getBoolean()) return; tracker.addMovement(event); } diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 691acea474..9bb2d1b3e6 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -172,6 +172,7 @@ public enum SettingsEnum { EXTERNAL_BROWSER("revanced_external_browser", BOOLEAN, TRUE, true), AUTO_REPEAT("revanced_auto_repeat", BOOLEAN, FALSE), SEEKBAR_TAPPING("revanced_seekbar_tapping", BOOLEAN, TRUE), + DISABLE_PRECISE_SEEKING_GESTURE("revanced_disable_precise_seeking_gesture", BOOLEAN, TRUE), DISABLE_FINE_SCRUBBING_GESTURE("revanced_disable_fine_scrubbing_gesture", BOOLEAN, TRUE), SPOOF_SIGNATURE("revanced_spoof_signature_verification_enabled", BOOLEAN, TRUE, true, "revanced_spoof_signature_verification_enabled_user_dialog_message"), @@ -381,6 +382,7 @@ private static void loadAllSettings() { // region Migration migrateOldSettingToNew(HIDE_VIDEO_WATERMARK, HIDE_VIDEO_CHANNEL_WATERMARK); + migrateOldSettingToNew(DISABLE_FINE_SCRUBBING_GESTURE, DISABLE_PRECISE_SEEKING_GESTURE); // Do _not_ delete this SB private user id migration property until sometime in 2024. // This is the only setting that cannot be reconfigured if lost,