Skip to content

Commit c238af5

Browse files
committed
Keyguard sliding challenge - fix overeager touch interception
Bug 7458287 Change-Id: I31f196539eecab1df5835e8ac1a76d9732a332fe
1 parent 0945282 commit c238af5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

policy/src/com/android/internal/policy/impl/keyguard/SlidingChallengeLayout.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,11 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
581581
final float x = ev.getX(i);
582582
final float y = ev.getY(i);
583583
if (!mIsBouncing && mActivePointerId == INVALID_POINTER
584-
&& ((isInDragHandle(x, y) && MathUtils.sq(x - mGestureStartX)
585-
+ MathUtils.sq(y - mGestureStartY) > mTouchSlopSquare)
586-
|| crossedDragHandle(x, y, mGestureStartY)
587-
|| (isInChallengeView(x, y) && (mScrollState == SCROLL_STATE_SETTLING
588-
|| !mChallengeShowing)))) {
584+
&& ((isInDragHandle(x, y) && MathUtils.sq(x - mGestureStartX)
585+
+ MathUtils.sq(y - mGestureStartY) > mTouchSlopSquare)
586+
|| crossedDragHandle(x, y, mGestureStartY)
587+
|| (isInChallengeView(x, y) &&
588+
mScrollState == SCROLL_STATE_SETTLING))) {
589589
mActivePointerId = ev.getPointerId(i);
590590
mGestureStartX = x;
591591
mGestureStartY = y;

0 commit comments

Comments
 (0)