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

This commit is contained in:
Bryce Lee
2022-04-28 21:57:18 +00:00
committed by Android (Google) Code Review

View File

@@ -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>