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
Loading
Please register or sign in to comment