Merge "Do not wake from stylus buttons when disabled" into udc-dev

This commit is contained in:
Treehugger Robot
2023-04-20 18:55:24 +00:00
committed by Android (Google) Code Review

View File

@@ -4576,6 +4576,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
case KeyEvent.KEYCODE_BACK:
return mWakeOnBackKeyPress;
case KeyEvent.KEYCODE_STYLUS_BUTTON_PRIMARY:
case KeyEvent.KEYCODE_STYLUS_BUTTON_SECONDARY:
case KeyEvent.KEYCODE_STYLUS_BUTTON_TERTIARY:
case KeyEvent.KEYCODE_STYLUS_BUTTON_TAIL:
return mStylusButtonsEnabled;
}
return true;