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

Commit 4d441e88 authored by Bryce Lee's avatar Bryce Lee Committed by Automerger Merge Worker
Browse files

Merge "Unbind from overlay before checking attached." into tm-dev am: d5e4503c am: 3788344c

parents cfe03e43 3788344c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1038,14 +1038,14 @@ public class DreamService extends Service implements Window.Callback {
        }
        mFinished = true;

        mOverlayConnection.unbind(this);

        if (mDreamToken == null) {
            Slog.w(mTag, "Finish was called before the dream was attached.");
            stopSelf();
            return;
        }

        mOverlayConnection.unbind(this);

        try {
            // finishSelf will unbind the dream controller from the dream service. This will
            // trigger DreamService.this.onDestroy and DreamService.this will die.