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

Commit 5fb1070b authored by Erik Wolsheimer's avatar Erik Wolsheimer
Browse files

Guard against updateDoze after detach

Bug: 68815183
Change-Id: I147f04af4ea1af59f95757a14de3c34021e048a5
parent 97969c36
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -665,6 +665,11 @@ public class DreamService extends Service implements Window.Callback {
    }

    private void updateDoze() {
        if (mWindowToken == null) {
            Slog.w(TAG, "Updating doze without a window token.");
            return;
        }

        if (mDozing) {
            try {
                mSandman.startDozing(mWindowToken, mDozeScreenState, mDozeScreenBrightness);