Nuke minimum time for camera double tap gesture am: 4e9817e
am: 3a0c73f
* commit '3a0c73fc28c6449837df8c6a28f8791a31f47d05':
Nuke minimum time for camera double tap gesture
Change-Id: I68f48cf9d4533c8954f68b38d4b736e68ec455b1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user