diff options
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 6d7bd06..6f9ac22 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java @@ -74,13 +74,13 @@ public class KeyButtonView extends ImageView { sendEvent(KeyEvent.ACTION_DOWN, CURSOR_REPEAT_FLAGS, System.currentTimeMillis(), false); postDelayed(mCheckLongPress, ViewConfiguration.getKeyRepeatDelay()); - } else if (mCode != 0) { - sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); - sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED); } else if (isLongClickable()) { // Just an old-fashioned ImageView mPerformedLongClick = true; performLongClick(); + } else { + sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS); + sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED); } } } |