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

Commit 058cbcc4 authored by Jason Monk's avatar Jason Monk
Browse files

Only play up effect if its been over 100 ms

Test: manual
Bug: 62655913
Change-Id: If256ab9fc6f74688f47b0ea53543d3b2fd514a35
parent 84e0f453
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -228,7 +228,9 @@ 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) {
                    performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY_RELEASE);
                }
                if (mCode != 0) {
                    if (doIt) {
                        sendEvent(KeyEvent.ACTION_UP, 0);