Index: ui/app_list/views/apps_grid_view.cc |
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc |
index 63f817c939efc6ccf4386aae1866fd8daedb3bdf..0c0af51e5553277342cd12ed5b8300749487d51d 100644 |
--- a/ui/app_list/views/apps_grid_view.cc |
+++ b/ui/app_list/views/apps_grid_view.cc |
@@ -367,6 +367,17 @@ void AppsGridView::SetLayout(int icon_size, int cols, int rows_per_page) { |
kTopPadding, kLeftRightPadding, 0, kLeftRightPadding)); |
} |
+void AppsGridView::ResetForShowApps() { |
+ activated_item_view_ = NULL; |
+ layer()->SetOpacity(1.0f); |
+ SetVisible(true); |
+ // Set all views to visible in case they weren't made visible again by an |
+ // incomplete animation. |
+ for (int i = 0; i < view_model_.view_size(); ++i) { |
+ view_model_.view_at(i)->SetVisible(true); |
+ } |
+} |
+ |
void AppsGridView::SetModel(AppListModel* model) { |
if (model_) |
model_->RemoveObserver(this); |