diff options
author | arthurhung <arthurhung@google.com> | 2021-03-24 16:53:14 +0800 |
---|---|---|
committer | Bill Peckham <bpeckham@google.com> | 2021-04-05 21:33:08 +0000 |
commit | 01c265f0a43b4d57b09d6c05d6ef72b97a91a2de (patch) | |
tree | 184eb595cef66de454a2bb073d9ec8da5386bbfd /libs/hwui/renderthread/RenderThread.cpp | |
parent | 21cdef883cc867db55340b25d5c95e19b12ab383 (diff) |
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
(cherry picked from commit 2cd8502f45ce1427cfd78d17749f0da6d1ce2fa0)
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions