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

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

Merge "Don't destroy surfaces of activities launched behind early." into lmp-mr1-dev

parents e6a2ff2b ec533f6a
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -308,13 +308,9 @@ public class AppWindowAnimator {

        transformation.clear();

        final int N = mAllAppWinAnimators.size();
        for (int i=0; i<N; i++) {
            final WindowStateAnimator winAnim = mAllAppWinAnimators.get(i);
            if (mAppToken.mLaunchTaskBehind) {
                winAnim.mWin.mExiting = true;
            }
            winAnim.finishExit();
        final int numAllAppWinAnimators = mAllAppWinAnimators.size();
        for (int i = 0; i < numAllAppWinAnimators; i++) {
            mAllAppWinAnimators.get(i).finishExit();
        }
        if (mAppToken.mLaunchTaskBehind) {
            try {