Skip to content

Commit ff20471

Browse files
author
Jeff Brown
committed
Fix power key handling after volume change.
Bug: 5497716 We should only cancel the pending power key when there actually is one pending. Change-Id: Iab684d24a643e1be4a8abde5cf905ca1819e9aa8
1 parent 7a962fe commit ff20471

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ private void cancelPendingPowerKeyAction() {
571571
if (!mPowerKeyHandled) {
572572
mHandler.removeCallbacks(mPowerLongPress);
573573
}
574-
mPendingPowerKeyUpCanceled = true;
574+
if (mPowerKeyTriggered) {
575+
mPendingPowerKeyUpCanceled = true;
576+
}
575577
}
576578

577579
private void interceptScreenshotChord() {

0 commit comments

Comments
 (0)