Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java +3 −3 Original line number Diff line number Diff line Loading @@ -82,13 +82,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); } } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java +3 −3 Original line number Diff line number Diff line Loading @@ -82,13 +82,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); } } } Loading