Only Dispatch Stylus Key Events to System UI on Key Down
Test: manual Fixes: b/254604589 Change-Id: Iaa82292f289f51f84d6b01ce4cb7a69fabd8dd4e
This commit is contained in:
@@ -4316,7 +4316,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_SECONDARY:
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TERTIARY:
|
||||
case KeyEvent.KEYCODE_STYLUS_BUTTON_TAIL: {
|
||||
if (!mStylusButtonsDisabled) {
|
||||
if (down && !mStylusButtonsDisabled) {
|
||||
sendSystemKeyToStatusBarAsync(keyCode);
|
||||
}
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
|
||||
Reference in New Issue
Block a user