Merge "Detach children in transaction." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-05-11 19:37:00 +00:00
committed by Android (Google) Code Review

View File

@@ -923,10 +923,12 @@ class AppWindowToken extends WindowToken implements WindowManagerService.AppFree
}
void detachChildren() {
SurfaceControl.openTransaction();
for (int i = mChildren.size() - 1; i >= 0; i--) {
final WindowState w = mChildren.get(i);
w.mWinAnimator.detachChildren();
}
SurfaceControl.closeTransaction();
}
void finishRelaunching() {