diff options
author | Lucas Dupin <dupin@google.com> | 2019-05-03 19:37:39 -0700 |
---|---|---|
committer | Lucas Dupin <dupin@google.com> | 2019-05-08 11:34:21 -0700 |
commit | 7156bc795d294826b31a24d5df0a95b4c94b0b66 (patch) | |
tree | ce6b99649e95beb381961ccda318c682b39ec299 /packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | |
parent | d7314d7ab38fded0016903b800bc7278853fe391 (diff) |
Allow users to swipe up on bouncer to retry auth
This will be enabled whenever face authentication is available.
It's not possible to swipe on the pattern area.
Test: manual (with pin, pattern and password)
Fixes: 128036528
Change-Id: I8a4a9f7243db90be63df7d4e18125a1de3a591d9
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java index 8899bd9ea9f2..55499dab05f3 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java @@ -231,6 +231,13 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit public void showUsabilityHint() { } + @Override + public boolean disallowInterceptTouch(MotionEvent event) { + mTempRect.set(mLockPatternView.getLeft(), mLockPatternView.getTop(), + mLockPatternView.getRight(), mLockPatternView.getBottom()); + return mTempRect.contains((int) event.getX(), (int) event.getY()); + } + /** TODO: hook this up */ public void cleanUp() { if (DEBUG) Log.v(TAG, "Cleanup() called on " + this); |