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

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

Merge "Improve camera launch time from double tap power" into tm-qpr-dev am: 84d0bab4

parents e1b2ad78 84d0bab4
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -4143,6 +4143,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        mCameraGestureTriggered = true;
        if (mRequestedOrSleepingDefaultDisplay) {
            mCameraGestureTriggeredDuringGoingToSleep = true;
            // Wake device up early to prevent display doing redundant turning off/on stuff.
            wakeUp(SystemClock.uptimeMillis(), mAllowTheaterModeWakeFromPowerKey,
                    PowerManager.WAKE_REASON_CAMERA_LAUNCH,
                    "android.policy:CAMERA_GESTURE_PREVENT_LOCK");
        }
        return true;
    }
@@ -4674,11 +4678,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            }
            mDefaultDisplayRotation.updateOrientationListener();
            reportScreenStateToVrManager(false);
            if (mCameraGestureTriggeredDuringGoingToSleep) {
                wakeUp(SystemClock.uptimeMillis(), mAllowTheaterModeWakeFromPowerKey,
                        PowerManager.WAKE_REASON_CAMERA_LAUNCH,
                        "com.android.systemui:CAMERA_GESTURE_PREVENT_LOCK");
            }
        }
    }