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

This commit is contained in:
Wale Ogunwale
2014-12-05 22:56:11 +00:00
committed by Android (Google) Code Review

View File

@@ -308,13 +308,9 @@ public class AppWindowAnimator {
transformation.clear(); transformation.clear();
final int N = mAllAppWinAnimators.size(); final int numAllAppWinAnimators = mAllAppWinAnimators.size();
for (int i=0; i<N; i++) { for (int i = 0; i < numAllAppWinAnimators; i++) {
final WindowStateAnimator winAnim = mAllAppWinAnimators.get(i); mAllAppWinAnimators.get(i).finishExit();
if (mAppToken.mLaunchTaskBehind) {
winAnim.mWin.mExiting = true;
}
winAnim.finishExit();
} }
if (mAppToken.mLaunchTaskBehind) { if (mAppToken.mLaunchTaskBehind) {
try { try {