Skip to content
Commit 2cd8502f authored by arthurhung's avatar arthurhung Committed by Arthur Hung
Browse files

Fix screen can not turn on with power key sometimes

To prevent some variables may go to wrong state by different config.

- Move 'BeganFromNonInteractive' into SingleKeyGestureDetector to ensure
  it could be set when the key first down.
- Make sure we would clear state after 'onPress' triggered.
- Add dump function to see what rules in current usage.

Bug: 183497800
Bug: 182205496
Test: change config then press power key to suspend and resume
Test: adb shell dumpsys window policy
Change-Id: I672400325ac03045d441f1315df5ae0d819e20d4
parent fd87df7d
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