diff options
author | Lucas Dupin <dupin@google.com> | 2019-05-21 13:13:32 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-05-21 13:13:32 -0700 |
commit | ab0bf513e8611d2140790f34c4a0f26e8fbc12a2 (patch) | |
tree | 539d77518f61105a8913e32c73d1d158bfc95506 /packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | |
parent | 2df59391d6a6cfafc846b08059187d08b92adb7d (diff) | |
parent | d38f0d3440926757282b188c5ef26442c1cded80 (diff) |
Merge "Bouncer retry polish" into qt-dev
am: d38f0d3440
Change-Id: Ifbcb7efaaacb9a86d9f4adb6a0e0c846f40c41bf
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java index f3baf8d3fd99..362ead362e01 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPatternView.java @@ -64,6 +64,9 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit // How much we scale up the duration of the disappear animation when the current user is locked public static final float DISAPPEAR_MULTIPLIER_LOCKED = 1.5f; + // Extra padding, in pixels, that should eat touch events. + private static final int PATTERNS_TOUCH_AREA_EXTENSION = 40; + private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; private final AppearAnimationUtils mAppearAnimationUtils; private final DisappearAnimationUtils mDisappearAnimationUtils; @@ -204,9 +207,10 @@ public class KeyguardPatternView extends LinearLayout implements KeyguardSecurit protected void onLayout(boolean changed, int l, int t, int r, int b) { super.onLayout(changed, l, t, r, b); mLockPatternView.getLocationOnScreen(mTmpPosition); - mLockPatternScreenBounds.set(mTmpPosition[0], mTmpPosition[1], - mTmpPosition[0] + mLockPatternView.getWidth(), - mTmpPosition[1] + mLockPatternView.getHeight()); + mLockPatternScreenBounds.set(mTmpPosition[0] - PATTERNS_TOUCH_AREA_EXTENSION, + mTmpPosition[1] - PATTERNS_TOUCH_AREA_EXTENSION, + mTmpPosition[0] + mLockPatternView.getWidth() + PATTERNS_TOUCH_AREA_EXTENSION, + mTmpPosition[1] + mLockPatternView.getHeight() + PATTERNS_TOUCH_AREA_EXTENSION); } @Override |