Merge "Fix crash when handling recents animation canceled" into sc-dev am: a82403ab09

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15192339

Change-Id: I0934d3e3125f0da439eb97461572bbf23c6b5298
This commit is contained in:
Winson Chung authored and Automerger Merge Worker committed 2021-07-03 03:41:59 +00:00
commit 9b3c0a7ae8
1 file changed
+3 -1
@@ -364,7 +364,9 @@ public class GestureState implements RecentsAnimationCallbacks.RecentsAnimationL
mStateCallback.setState(STATE_RECENTS_ANIMATION_ENDED);
if (mRecentsAnimationCanceledSnapshot != null) {
// Clean up the screenshot to finalize the recents animation cancel
mRecentsAnimationController.cleanupScreenshot();
if (mRecentsAnimationController != null) {
mRecentsAnimationController.cleanupScreenshot();
}
mRecentsAnimationCanceledSnapshot = null;
}
}