Prevent NPE at TaskStack#resetAnimationBackgroundAnimator

Bug: 67034123
Change-Id: Ie1c7d8371d146006bc98f3a1ccc25292771ae3f9
(cherry picked from commit 70f5a4a3e807bfe30cd88431207774b23369075c)
This commit is contained in:
Erik Wolsheimer
2017-09-29 12:12:47 -07:00
parent f189de75b2
commit 0e7f7b3816

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) {