Merge "Prevent showing immersive confirmation unexpectedly"
This commit is contained in:
@@ -4389,7 +4389,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
result &= ~ACTION_PASS_TO_USER;
|
result &= ~ACTION_PASS_TO_USER;
|
||||||
if (down) {
|
if (down) {
|
||||||
boolean panic = mImmersiveModeConfirmation.onPowerKeyDown(interactive,
|
boolean panic = mImmersiveModeConfirmation.onPowerKeyDown(interactive,
|
||||||
event.getDownTime(), isImmersiveMode(mLastSystemUiFlags));
|
SystemClock.elapsedRealtime(), isImmersiveMode(mLastSystemUiFlags));
|
||||||
if (panic) {
|
if (panic) {
|
||||||
mHandler.post(mRequestTransientNav);
|
mHandler.post(mRequestTransientNav);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user