commit | 52a7f05681c72867dff8a12b80a7cb0ff86ba9f6 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Tue Aug 22 13:42:11 2023 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Tue Aug 22 13:46:29 2023 -0700 |
tree | ee880e69dbbca2b2cfa95afbf24ada399400dd5f | |
parent | f18305ac08bf15faf744080b136dfe357c8506e5 [diff] |
Adding support for clearing overview suggestion state when overview is disabled Bug: 297037290 Test: Presubmit Flag: N/A Change-Id: I38f7fd38564c7c529cbd9aa5acead08b181b1b92
diff --git a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java index 06f1f9a..076f4b1 100644 --- a/quickstep/src/com/android/quickstep/TaskOverlayFactory.java +++ b/quickstep/src/com/android/quickstep/TaskOverlayFactory.java
@@ -122,6 +122,12 @@ 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 cb5b457..be9da34 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1396,6 +1396,7 @@ // its thumbnail mTmpRunningTasks = null; mSplitBoundsConfig = null; + mTaskOverlayFactory.clearAllActiveState(); } updateLocusId(); }