From 0b9afd022dbf622478bb931124ac41a969610c64 Mon Sep 17 00:00:00 2001 From: Zain Date: Sun, 29 Sep 2024 07:32:24 +0700 Subject: [PATCH] feat(YouTube - Disable precise seeking gesture): Hide "pull up" label that shows up when swiping (#696) --- .../patches/DisablePreciseSeekingGesturePatch.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/DisablePreciseSeekingGesturePatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/DisablePreciseSeekingGesturePatch.java index 5e3eca57..2afa79fd 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/DisablePreciseSeekingGesturePatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/DisablePreciseSeekingGesturePatch.java @@ -1,20 +1,10 @@ package app.revanced.integrations.youtube.patches; -import android.view.MotionEvent; -import android.view.VelocityTracker; - import app.revanced.integrations.youtube.settings.Settings; @SuppressWarnings("unused") public final class DisablePreciseSeekingGesturePatch { - /** - * 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 (Settings.DISABLE_PRECISE_SEEKING_GESTURE.get()) return; - - tracker.addMovement(event); + public static boolean isGestureDisabled() { + return Settings.DISABLE_PRECISE_SEEKING_GESTURE.get(); } }