Skip to content

Commit 1dd84d5

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Keyguard sliding challenge - fix overeager touch interception" into jb-mr1-lockscreen-dev
2 parents 998a504 + c238af5 commit 1dd84d5

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)