Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff20471b authored by Jeff Brown's avatar Jeff Brown
Browse files

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
parent 7a962fef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -571,8 +571,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (!mPowerKeyHandled) {
            mHandler.removeCallbacks(mPowerLongPress);
        }
        if (mPowerKeyTriggered) {
            mPendingPowerKeyUpCanceled = true;
        }
    }

    private void interceptScreenshotChord() {
        if (mVolumeDownKeyTriggered && mPowerKeyTriggered && !mVolumeUpKeyTriggered) {