Merge "Prevent NPE at TaskStack#resetAnimationBackgroundAnimator"

This commit is contained in:
TreeHugger Robot
2017-10-02 18:16:49 +00:00
committed by Android (Google) Code Review

View File

@@ -923,7 +923,9 @@ public class TaskStack extends WindowContainer<Task> implements DimLayer.DimLaye
void resetAnimationBackgroundAnimator() {
mAnimationBackgroundAnimator = null;
mAnimationBackgroundSurface.hide();
if (mAnimationBackgroundSurface != null) {
mAnimationBackgroundSurface.hide();
}
}
void setAnimationBackground(WindowStateAnimator winAnimator, int color) {