commit | 2ecf97efe5525d6ef5b2ad63c20535e8e3af06c3 | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Fri Jul 28 10:46:39 2017 -0400 |
committer | Jason Monk <jmonk@google.com> | Fri Jul 28 10:48:09 2017 -0400 |
tree | bd031ab338ab254beaac2f742fd333c1caafb58d | |
parent | 19d8e4e04e6cb63aa00bc23d93f6e936a6341e1c [diff] |
Nav haptics: increase threshold to 150 and don't do on long clicks Test: touch Change-Id: I1014670036400c0c8e2db4afd63ecfaf103f6fb7 Fixes: 62655913
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java index d652bde..08ea543 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
@@ -228,7 +228,7 @@ setPressed(false); // Always send a release ourselves because it doesn't seem to be sent elsewhere // and it feels weird to sometimes get a release haptic and other times not. - if ((SystemClock.uptimeMillis() - mDownTime) > 100) { + if ((SystemClock.uptimeMillis() - mDownTime) > 150 && !mLongClicked) { performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY_RELEASE); } if (mCode != 0) {