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

Commit 553d9780 authored by Winson Chung's avatar Winson Chung
Browse files

Fix crash when handling recents animation canceled

- If Launcher finishes the animation, that also cleans up the screenshot
  on the server side, so we can skip calling it

Fixes: 192684578
Test: N/a, adding a null check
Change-Id: Ia6b99b4262e72f925e7d622ea8833d3c88252633
parent eead98d4
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;
        }
    }