Merge "When closing task stack remove reference to display content." into mnc-dev

This commit is contained in:
Filip Gruszczynski
2015-08-12 00:40:50 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 3 deletions

View File

@@ -203,7 +203,9 @@ class DisplayContent {
}
void moveStack(TaskStack stack, boolean toTop) {
mStacks.remove(stack);
if (!mStacks.remove(stack)) {
Slog.wtf(TAG, "moving stack that was not added: " + stack, new Throwable());
}
mStacks.add(toTop ? mStacks.size() : 0, stack);
}

View File

@@ -385,8 +385,6 @@ public class TaskStack {
}
close();
mDisplayContent = null;
}
void resetAnimationBackgroundAnimator() {
@@ -518,6 +516,7 @@ public class TaskStack {
mDimLayer.destroySurface();
mDimLayer = null;
}
mDisplayContent = null;
}
public void dump(String prefix, PrintWriter pw) {