Merge "Do not detach children of starting windows" into qt-r1-dev

This commit is contained in:
Jorim Jaggi
2019-07-18 13:18:20 +00:00
committed by Android (Google) Code Review

View File

@@ -1493,6 +1493,12 @@ class WindowStateAnimator {
}
void detachChildren() {
// Do not detach children of starting windows, as their lifecycle is well under control and
// it may lead to issues in case we relaunch when we just added the starting window.
if (mWin.mAttrs.type == TYPE_APPLICATION_STARTING) {
return;
}
if (mSurfaceController != null) {
mSurfaceController.detachChildren();
}