Fix crash for predictive back to home fallback animation

Bug: 323046568
Flag: ACONFIG com.android.window.flags.predictive_back_system_anims TEAMFOOD
Test: Manual, i.e. verify no crash for predictive back to home fallback
animation
Change-Id: I8bd5ddb3f97376a9d9bc4bdf1e3a55e7f53a192f

Change-Id: I1f53b3fafb8d508a0e0b67dda16eae36191f197c
This commit is contained in:
Johannes Gallmann
2024-02-01 12:18:51 +01:00
parent 69f37fd722
commit 8a631d09d0

View File

@@ -1677,7 +1677,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
}
};
if (fromPredictiveBack) {
if (fromPredictiveBack && rectFSpringAnim != null) {
rectFSpringAnim.addAnimatorListener(endListener);
} else {
anim.addListener(endListener);