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

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

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

parents 266f0e2e 94ea346f
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2243,12 +2243,8 @@ 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()
                && mPendingScreenOffUnblocker == null) {
                && !mDisplayPowerProximityStateController.isScreenOffBecauseOfProximity()) {
            setReportedScreenState(REPORTED_TO_POLICY_SCREEN_OFF);
            unblockScreenOn();
            mWindowManagerPolicy.screenTurnedOff(mDisplayId, mIsInTransition);