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

Commit 94e798ba authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Reset current task and dequeue overview commands when recents animation is cancelled

Fixes: 193925362
Test: manual
Change-Id: I792be003e5aabf34324075829d5381cba591892b
parent c3f56d76
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
 */
package com.android.quickstep;

import static com.android.launcher3.config.FeatureFlags.ENABLE_QUICKSTEP_LIVE_TILE;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.quickstep.util.ActiveGestureLog.INTENT_EXTRA_LOG_TRACE_ID;

@@ -199,6 +198,12 @@ public class OverviewCommandHelper {
            public void onRecentsAnimationCanceled(ThumbnailData thumbnailData) {
                interactionHandler.onGestureCancelled();
                cmd.removeListener(this);

                RecentsView createdRecents =
                        activityInterface.getCreatedActivity().getOverviewPanel();
                if (createdRecents != null) {
                    createdRecents.onRecentsAnimationComplete();
                }
            }
        };