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

Commit ae7cc249 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

am: 165d816c

Change-Id: Ia7d3e3ece36be6f585ce53b659bf109d62f988c6
parents a0c619f2 165d816c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1508,6 +1508,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();
        }