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

Commit 59dad14d authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Don't set replacing flag in starting windows."

parents 4fac7680 6d8e06ba
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -2352,10 +2352,15 @@ final class WindowState implements WindowManagerPolicy.WindowState {
    }

    void setReplacing(boolean animate) {
        if ((mAttrs.privateFlags & PRIVATE_FLAG_WILL_NOT_REPLACE_ON_RELAUNCH) == 0) {
        if ((mAttrs.privateFlags & PRIVATE_FLAG_WILL_NOT_REPLACE_ON_RELAUNCH) != 0
                || mAttrs.type == TYPE_APPLICATION_STARTING) {
            // We don't set replacing on starting windows since they are added by window manager and
            // not the client so won't be replaced by the client.
            return;
        }

        mWillReplaceWindow = true;
        mReplacingWindow = null;
        mAnimateReplacingWindow = animate;
    }
}
}