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

Commit 9b789cbb authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fixing crash when cancelAnimaiton happens while we are aboutto enter...

Merge "Fixing crash when cancelAnimaiton happens while we are aboutto enter long-swipe" into ub-launcher3-edmonton
parents d3c8e35e 1d82dd4d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -880,6 +880,13 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
            return;
        }

        RemoteAnimationTargetSet targetSet = mRecentsAnimationWrapper.targetSet;
        if (targetSet == null) {
            // This can happen when cancelAnimation comes on the background thread, while we are
            // processing the long swipe on the UI thread.
            return;
        }

        mLongSwipeController = mActivityControlHelper.getLongSwipeController(
                mActivity, mRecentsAnimationWrapper.targetSet);
        onLongSwipeDisplacementUpdated();