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

Commit 3a0c73fc 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

* commit '4e9817ec':
  Nuke minimum time for camera double tap gesture

Change-Id: I83bcd6b723961b0716b60df97c5120def1205693
parents b6de6cbd 4e9817ec
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;
            }