Merge "Unbind from dream overlay in onUnbind." into tm-dev am: 493062c55e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18054667

Change-Id: I273b1099ebed1014930c441865b972236a0e10cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bryce Lee
2022-04-29 16:01:17 +00:00
committed by Automerger Merge Worker

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>