Merge "Reset current task and dequeue overview commands when recents animation is cancelled" into sc-dev

This commit is contained in:
Tracy Zhou 2021-07-26 21:17:38 +00:00 committed by Android (Google) Code Review
commit 024749a1e0
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}
}
};