From 033ebc8a22b1a53f42e7db580b7351a5dfa0e647 Mon Sep 17 00:00:00 2001 From: Brian Isganitis Date: Wed, 28 Jun 2023 19:55:28 +0000 Subject: [PATCH] Only update local zss cache when Taskbar Toast already active. Toast is handling suggestion updates itself during the session, and we do not need to send along the new search suggestions passed from bindExtraContainerItems. We should still store the updated suggestions in memory for the next time Taskbar All Apps is invoked. Test: Manual Bug: 216683257 Flag: ENABLE_ALL_APPS_SEARCH_IN_TASKBAR Flag: ZERO_STATE_WEB_DATA_LOADER Change-Id: I68673e5941dc4b81c3e72b7ec579f566f13ee4d2 --- .../launcher3/taskbar/allapps/TaskbarAllAppsController.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java index 02d9d95b02..cf0b36af02 100644 --- a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java +++ b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java @@ -112,9 +112,6 @@ public final class TaskbarAllAppsController { /** Updates the current search suggestions. */ public void setZeroStateSearchSuggestions(List zeroStateSearchSuggestions) { mZeroStateSearchSuggestions = zeroStateSearchSuggestions; - if (mSearchSessionController != null) { - mSearchSessionController.setZeroStateSearchSuggestions(zeroStateSearchSuggestions); - } } /** Updates the current notification dots. */