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

Commit fa995098 authored by Rupesh Bansal's avatar Rupesh Bansal Committed by Android (Google) Code Review
Browse files

Merge "[Bugfix]Execute screenTurnedOff after screenTurningOff is executed" into main

parents 41a06c25 fc3aad9d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2242,8 +2242,12 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
        // This surface is essentially the final state of the color fade animation and
        // it is only removed once the window manager tells us that the activity has
        // finished drawing underneath.
        // If mPendingScreenOffUnblocker is not null, it means we are waiting for
        // the window manager policy to unblock the screen off. This policy is doing something
        // like creating a snapshot, so should not report the screen off.
        if (isOff && mReportedScreenStateToPolicy != REPORTED_TO_POLICY_SCREEN_OFF
                && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()) {
                && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()
                && mPendingScreenOffUnblocker == null) {
            setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
            unblockScreenOn();
            mWindowManagerPolicy.screenTurnedOff(mDisplayId, mIsInTransition);