Merge "Unbind from overlay before checking attached." into tm-dev
This commit is contained in:
@@ -1038,14 +1038,14 @@ public class DreamService extends Service implements Window.Callback {
|
|||||||
}
|
}
|
||||||
mFinished = true;
|
mFinished = true;
|
||||||
|
|
||||||
|
mOverlayConnection.unbind(this);
|
||||||
|
|
||||||
if (mDreamToken == null) {
|
if (mDreamToken == null) {
|
||||||
Slog.w(mTag, "Finish was called before the dream was attached.");
|
Slog.w(mTag, "Finish was called before the dream was attached.");
|
||||||
stopSelf();
|
stopSelf();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mOverlayConnection.unbind(this);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// finishSelf will unbind the dream controller from the dream service. This will
|
// finishSelf will unbind the dream controller from the dream service. This will
|
||||||
// trigger DreamService.this.onDestroy and DreamService.this will die.
|
// trigger DreamService.this.onDestroy and DreamService.this will die.
|
||||||
|
|||||||
Reference in New Issue
Block a user