Nuke minimum time for camera double tap gesture

am: 4e9817e

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

Change-Id: I83bcd6b723961b0716b60df97c5120def1205693
This commit is contained in:
Jorim Jaggi
2016-04-12 02:00:23 +00:00
committed by android-build-merger

View File

@@ -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;
}