From 93c5ed8167e0a32109cf0baf5de4834c5def1aac Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Fri, 4 Oct 2019 11:58:24 -0700 Subject: [PATCH] Make is less likely to ignore PIN tap events The PIN area can be dragged vertically to retry face auth, the touch slope was already scaled up to avoid accidental drags but some users still reported that taps were being ignored. This CL increases the touch slope size. Fixes: 140030986 Bug: 141873371 Test: manual Change-Id: I8db78942797f2c44caf9c9bdc0ec693e6c6a65f9 --- .../src/com/android/keyguard/KeyguardSecurityContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java index 8d167e8783bf9..a0ea162aa7bd7 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -76,7 +76,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe // How much you need to drag the bouncer to trigger an auth retry (in dps.) private static final float MIN_DRAG_SIZE = 10; // How much to scale the default slop by, to avoid accidental drags. - private static final float SLOP_SCALE = 2f; + private static final float SLOP_SCALE = 4f; private KeyguardSecurityModel mSecurityModel; private LockPatternUtils mLockPatternUtils;