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

Commit a1b09a92 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Set the reason for screen-off before usage."

parents 53567a75 44bf70fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1858,6 +1858,7 @@ public class PowerManagerService extends IPowerManager.Stub
                } else {
                    // Update the lights *before* taking care of turning the
                    // screen off, so we can initiate any animations that are desired.
                    mScreenOffReason = reason;
                    if (stateChanged) {
                        updateLightsLocked(newState, 0);
                    }
@@ -1876,7 +1877,6 @@ public class PowerManagerService extends IPowerManager.Stub
                        Binder.restoreCallingIdentity(identity);
                    }
                    mPowerState &= ~SCREEN_ON_BIT;
                    mScreenOffReason = reason;
                    if (!mScreenBrightnessAnimator.isAnimating()) {
                        err = screenOffFinishedAnimatingLocked(reason);
                    } else {