Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a82403ab authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

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

parents e67baf65 553d9780
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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
            if (mRecentsAnimationController != null) {
                mRecentsAnimationController.cleanupScreenshot();
            }
            mRecentsAnimationCanceledSnapshot = null;
        }
    }