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

Commit e78d7670 authored by Dima Zavin's avatar Dima Zavin Committed by Android (Google) Code Review
Browse files

Merge "PowerManagerService: only turn off screen when we really mean to"

parents c8a0a159 d975403a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2235,7 +2235,7 @@ public class PowerManagerService extends IPowerManager.Stub

                if (target != currentValue) {
                    final boolean turningOff = endValue == Power.BRIGHTNESS_OFF;
                    if (turningOff) {
                    if (turningOff && ((mask & (SCREEN_ON_BIT | SCREEN_BRIGHT_BIT)) != 0)) {
                        // Cancel all pending animations since we're turning off
                        mScreenBrightnessHandler.removeCallbacksAndMessages(null);
                        screenOffFinishedAnimatingLocked(mScreenOffReason);