Fix screenshot shortcut when accessibility is enabled.
Previously, pressing the power button would cause the input state to reset in order to pass on the key events relating to the power button. When pressing the power button in combination with the volume down button, to take a screen shot, this would mean that the system would receive the ACTION_UP for the volume button before the ACTION_DOWN. In this change we pass on the power buttons but do not reset state, allowing us to process other events normally. Flag: com.android.server.accessibility.do_not_reset_key_event_state Fix:331900630 Test: Enable the DEBUG variable in AccessibilityInputFilter.java. Press volume down and power to take a screenshot. Inspect the logs to observe the event stream. Test: Press volume up and down with one finger on the screen. Observe the volume adjustment works normally. Test: Press power and volume up to activate the power menu. Change-Id: Ie986bcb25f738b0163c92ddb22897f781890f5c1
Loading
Please register or sign in to comment