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

Commit 0af48956 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix PowerMgr NPE on emulator.

Bug: 6313695
Change-Id: Ib12b9102df01603df135cef03fd2a2f6e3634dd1
parent 450c75a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1795,7 +1795,7 @@ public class PowerManagerService extends IPowerManager.Stub
            final boolean stateChanged = mPowerState != newState;

            if (stateChanged && reason == WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT) {
                if (mPolicy.isScreenSaverEnabled()) {
                if (mPolicy != null && mPolicy.isScreenSaverEnabled()) {
                    if (mSpew) {
                        Slog.d(TAG, "setPowerState: running screen saver instead of turning off screen");
                    }