Merge "Fix deadlock between WMG and WMS" into sc-dev
This commit is contained in:
@@ -85,8 +85,10 @@ public class WindowTokenClient extends IWindowToken.Stub {
|
|||||||
context.destroy();
|
context.destroy();
|
||||||
mContextRef.clear();
|
mContextRef.clear();
|
||||||
}
|
}
|
||||||
// If a secondary display is detached, release all views attached to this token.
|
ActivityThread.currentActivityThread().getHandler().post(() -> {
|
||||||
WindowManagerGlobal.getInstance().closeAll(this, mContextRef.getClass().getName(),
|
// If the tracked window token is detached, release all views attached to this token.
|
||||||
"WindowContext");
|
WindowManagerGlobal.getInstance().closeAll(WindowTokenClient.this,
|
||||||
|
"#onWindowTokenRemoved()", "WindowTokenClient");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user