Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 340e7d25 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Nav haptics: increase threshold to 150 and don't do on long clicks" into oc-dr1-dev

am: ac73492c

Change-Id: I8ce276208b39618d7ff2c46a5cca5a2356633d6f
parents 94b8ed89 ac73492c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
                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) {