From 52a7f05681c72867dff8a12b80a7cb0ff86ba9f6 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 22 Aug 2023 13:42:11 -0700 Subject: [PATCH] Adding support for clearing overview suggestion state when overview is disabled Bug: 297037290 Test: Presubmit Flag: N/A Change-Id: I38f7fd38564c7c529cbd9aa5acead08b181b1b92 --- quickstep/src/com/android/quickstep/TaskOverlayFactory.java | 6 ++++++ quickstep/src/com/android/quickstep/views/RecentsView.java | 1 + 2 files changed, 7 insertions(+) diff --git a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java index 06f1f9a6f4..076f4b1f01 100644 --- a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java +++ b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java @@ -122,6 +122,12 @@ public class TaskOverlayFactory implements ResourceBasedOverride { public void removeListeners() { } + /** + * Clears any active state outside of the TaskOverlay lifecycle which might have built + * up over time + */ + public void clearAllActiveState() { } + /** Note that these will be shown in order from top to bottom, if available for the task. */ private static final TaskShortcutFactory[] MENU_OPTIONS = new TaskShortcutFactory[]{ TaskShortcutFactory.APP_INFO, diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index cb5b457efa..be9da34ab2 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1396,6 +1396,7 @@ public abstract class RecentsView