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

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

Revert "[Bugfix]Execute screenTurnedOff after screenTurningOff is executed"

This reverts commit fc3aad9d.

Reason for revert: 421316105

Bug:414282309
Change-Id: I3d612a472259753ea672a8d239b9660d477456e6
parent fc3aad9d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2242,12 +2242,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);