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

Commit c51bd5ff authored by Arthur Hung's avatar Arthur Hung Committed by Automerger Merge Worker
Browse files

Merge "Keeps power key intercepted during a panic gesture" into sc-dev am: 4ee67cf1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15389276

Change-Id: I4ec95e79561cd1fe82b9f5075119f94f5d1b8b1d
parents 97400971 4ee67cf1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3845,9 +3845,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        }
        mCameraGestureTriggered = false;
        final MutableBoolean outLaunched = new MutableBoolean(false);
        final boolean intercept =
                mGestureLauncherService.interceptPowerKeyDown(event, interactive, outLaunched);
        if (!outLaunched.value) {
            return false;
            // If GestureLauncherService intercepted the power key, but didn't launch camera app,
            // we should still return the intercept result. This prevents the single key gesture
            // detector from processing the power key later on.
            return intercept;
        }
        mCameraGestureTriggered = true;
        if (mRequestedOrSleepingDefaultDisplay) {