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

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

Merge "Only consider gone for layout if parent is gone for layout" into qt-r1-dev am: f00f197d

am: da43d993

Change-Id: Ia5f4dc6c9ed4c7590d530a6e87f068ff3b540646
parents 8df6f160 da43d993
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1633,7 +1633,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
                || !mRelayoutCalled
                || (atoken == null && mToken.isHidden())
                || (atoken != null && atoken.hiddenRequested)
                || isParentWindowHidden()
                || isParentWindowGoneForLayout()
                || (mAnimatingExit && !isAnimatingLw())
                || mDestroying;
    }
@@ -3848,6 +3848,11 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        return parent != null && parent.mHidden;
    }

    private boolean isParentWindowGoneForLayout() {
        final WindowState parent = getParentWindow();
        return parent != null && parent.isGoneForLayoutLw();
    }

    void setWillReplaceWindow(boolean animate) {
        for (int i = mChildren.size() - 1; i >= 0; i--) {
            final WindowState c = mChildren.get(i);