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
This commit is contained in:
Brian Isganitis
2023-06-28 19:55:28 +00:00
parent a4d1e9aa99
commit 033ebc8a22

View File

@@ -112,9 +112,6 @@ public final class TaskbarAllAppsController {
/** Updates the current search suggestions. */
public void setZeroStateSearchSuggestions(List<ItemInfo> zeroStateSearchSuggestions) {
mZeroStateSearchSuggestions = zeroStateSearchSuggestions;
if (mSearchSessionController != null) {
mSearchSessionController.setZeroStateSearchSuggestions(zeroStateSearchSuggestions);
}
}
/** Updates the current notification dots. */