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:
@@ -58,7 +58,6 @@ public class GestureLauncherService extends SystemService {
|
|||||||
* as a camera launch.
|
* as a camera launch.
|
||||||
*/
|
*/
|
||||||
private static final long CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS = 300;
|
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. */
|
/** The listener that receives the gesture event. */
|
||||||
private final GestureEventListener mGestureListener = new GestureEventListener();
|
private final GestureEventListener mGestureListener = new GestureEventListener();
|
||||||
@@ -260,8 +259,7 @@ public class GestureLauncherService extends SystemService {
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
doubleTapInterval = event.getEventTime() - mLastPowerDown;
|
doubleTapInterval = event.getEventTime() - mLastPowerDown;
|
||||||
if (mCameraDoubleTapPowerEnabled
|
if (mCameraDoubleTapPowerEnabled
|
||||||
&& doubleTapInterval < CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS
|
&& doubleTapInterval < CAMERA_POWER_DOUBLE_TAP_MAX_TIME_MS) {
|
||||||
&& doubleTapInterval > CAMERA_POWER_DOUBLE_TAP_MIN_TIME_MS) {
|
|
||||||
launched = true;
|
launched = true;
|
||||||
intercept = interactive;
|
intercept = interactive;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user