Prevent NPE at TaskStack#resetAnimationBackgroundAnimator
Bug: 67034123 Change-Id: Ie1c7d8371d146006bc98f3a1ccc25292771ae3f9 (cherry picked from commit 70f5a4a3e807bfe30cd88431207774b23369075c)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user