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

Commit 5c4553b2 authored by Miranda Kephart's avatar Miranda Kephart Committed by Android (Google) Code Review
Browse files

Merge "Don't send long-press event if KEYCODE_UNKNOWN" into sc-dev

parents 87c34715 d41d0385
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -127,8 +127,10 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
                    performLongClick();
                    mLongClicked = true;
                } else {
                    if (mCode != KEYCODE_UNKNOWN) {
                        sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS);
                        sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED);
                    }
                    mLongClicked = true;
                }
            }