Commit 79fab97a authored by Jun Mukai's avatar Jun Mukai Committed by Commit Bot

Update suggestion chips on reset for show

AppsContainerView stops changing its state on closing, which
causes to remain the suggestion chips on inconsistent state with
its view.

I believe it is still good to keep the suppressing the state
change, but we need to reset the suggestion chip state on re-show.

Bug: 988566
Test: manually
Change-Id: Iddb2a4a69c17f601a66e80419ce58f28df4ca18e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1725236Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682338}
parent 7aa899a8
...@@ -132,6 +132,7 @@ void AppsContainerView::ShowApps(AppListFolderItem* folder_item) { ...@@ -132,6 +132,7 @@ void AppsContainerView::ShowApps(AppListFolderItem* folder_item) {
} }
void AppsContainerView::ResetForShowApps() { void AppsContainerView::ResetForShowApps() {
UpdateSuggestionChips();
SetShowState(SHOW_APPS, false); SetShowState(SHOW_APPS, false);
DisableFocusForShowingActiveFolder(false); DisableFocusForShowingActiveFolder(false);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment