Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 165d816c authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

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

am: 92498090

Change-Id: Id0e1b6899119ccb51c458de5b2fce0d3845e594b
parents da43d993 92498090
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();
        }