Merge "Don't send long-press event if KEYCODE_UNKNOWN" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5c4553b29f
@@ -127,8 +127,10 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
|
||||
performLongClick();
|
||||
mLongClicked = true;
|
||||
} else {
|
||||
sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS);
|
||||
sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED);
|
||||
if (mCode != KEYCODE_UNKNOWN) {
|
||||
sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS);
|
||||
sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED);
|
||||
}
|
||||
mLongClicked = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user