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

Commit 493062c5 authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Unbind from dream overlay in onUnbind." into tm-dev

parents 7585a958 1da50a20
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -999,6 +999,14 @@ public class DreamService extends Service implements Window.Callback {
        return mDreamServiceWrapper;
    }

    @Override
    public boolean onUnbind(Intent intent) {
        // We must unbind from any overlay connection if we are unbound before finishing.
        mOverlayConnection.unbind(this);

        return super.onUnbind(intent);
    }

    /**
     * Stops the dream and detaches from the window.
     * <p>