Commit 8a838980 authored by calamity's avatar calamity Committed by Commit bot

Reset the experimental app list to the start page on dismiss.

This CL fixes and issue where the experimental app list would not
reset to the start page on Windows and Linux.

BUG=412227

Review URL: https://codereview.chromium.org/552743005

Cr-Commit-Position: refs/heads/master@{#294307}
parent dab4f93b
...@@ -186,6 +186,10 @@ void AppListMainView::ShowAppListWhenReady() { ...@@ -186,6 +186,10 @@ void AppListMainView::ShowAppListWhenReady() {
} }
void AppListMainView::ResetForShow() { void AppListMainView::ResetForShow() {
if (switches::IsExperimentalAppListEnabled()) {
contents_view_->SetActivePage(contents_view_->GetPageIndexForNamedPage(
ContentsView::NAMED_PAGE_START));
}
contents_view_->apps_container_view()->ResetForShowApps(); contents_view_->apps_container_view()->ResetForShowApps();
// We clear the search when hiding so when app list appears it is not showing // We clear the search when hiding so when app list appears it is not showing
// search results. // search results.
......
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