From 94e798bac1bb3b9fe8a8887857e6e44d42df7a28 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 22 Jul 2021 17:26:42 -0700 Subject: [PATCH] Reset current task and dequeue overview commands when recents animation is cancelled Fixes: 193925362 Test: manual Change-Id: I792be003e5aabf34324075829d5381cba591892b --- .../src/com/android/quickstep/OverviewCommandHelper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java index 742d02d204..89c2ed8ed1 100644 --- a/quickstep/src/com/android/quickstep/OverviewCommandHelper.java +++ b/quickstep/src/com/android/quickstep/OverviewCommandHelper.java @@ -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(); + } } };