From ba3e59dab9069a175e3305caf0f2679d41e86f13 Mon Sep 17 00:00:00 2001 From: fazilsheik96 Date: Tue, 12 Mar 2024 00:42:59 +0530 Subject: [PATCH] Revert "Launcher3: Vibrate on double tap to sleep" This reverts commit 1af663b25718697339f74fd15903000b3acfdd2a. --- src/com/android/launcher3/touch/WorkspaceTouchListener.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/com/android/launcher3/touch/WorkspaceTouchListener.java b/src/com/android/launcher3/touch/WorkspaceTouchListener.java index 883c3db67b..2b0acb4621 100644 --- a/src/com/android/launcher3/touch/WorkspaceTouchListener.java +++ b/src/com/android/launcher3/touch/WorkspaceTouchListener.java @@ -47,7 +47,6 @@ import com.android.launcher3.logger.LauncherAtom; import com.android.launcher3.testing.TestLogging; import com.android.launcher3.testing.shared.TestProtocol; import com.android.launcher3.util.TouchUtil; -import com.android.launcher3.util.VibratorWrapper; import com.android.launcher3.Utilities; @@ -224,10 +223,8 @@ public class WorkspaceTouchListener extends GestureDetector.SimpleOnGestureListe @Override public boolean onDoubleTap(MotionEvent event) { - if (Utilities.isDoubleTapGestureEnabled(mContext)) { - VibratorWrapper.INSTANCE.get(mContext).vibrate(VibratorWrapper.EFFECT_CLICK); + if (Utilities.isDoubleTapGestureEnabled(mContext)) mPm.goToSleep(event.getEventTime()); - } return true; } }