Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a2455364 authored by Ameer Armaly's avatar Ameer Armaly
Browse files

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
parent 75ee1ea7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment