Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfb789fc authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Nuke minimum time for camera double tap gesture am: 4e9817ec

am: 3a0c73fc

* commit '3a0c73fc':
  Nuke minimum time for camera double tap gesture

Change-Id: I68f48cf9d4533c8954f68b38d4b736e68ec455b1
parents db9ee12b 3a0c73fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ public class GestureLauncherService extends SystemService {
     * as a camera launch.
     */
    private static final long CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS = 300;
    private static final long CAMERA_POWER_DOUBLE_TAP_MIN_TIME_MS = 120;

    /** The listener that receives the gesture event. */
    private final GestureEventListener mGestureListener = new GestureEventListener();
@@ -260,8 +259,7 @@ public class GestureLauncherService extends SystemService {
        synchronized (this) {
            doubleTapInterval = event.getEventTime() - mLastPowerDown;
            if (mCameraDoubleTapPowerEnabled
                    && doubleTapInterval < CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS
                    && doubleTapInterval > CAMERA_POWER_DOUBLE_TAP_MIN_TIME_MS) {
                    && doubleTapInterval < CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS) {
                launched = true;
                intercept = interactive;
            }