Block app grid button press during folder animation.

Bug: 925193
Change-Id: I267e20f7a7f883549d769feedf9b9f38d2ab20b1
Reviewed-on: https://chromium-review.googlesource.com/c/1469294
Reviewed-by: Weidong Guo <weidongg@chromium.org>
Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631848}
diff --git a/ash/app_list/views/apps_grid_view.cc b/ash/app_list/views/apps_grid_view.cc
index 7282294..54ba038 100644
--- a/ash/app_list/views/apps_grid_view.cc
+++ b/ash/app_list/views/apps_grid_view.cc
@@ -2264,6 +2264,12 @@
   if (strcmp(sender->GetClassName(), AppListItemView::kViewClassName))
     return;
 
+  if (contents_view_->GetAppsContainerView()
+          ->app_list_folder_view()
+          ->IsAnimationRunning()) {
+    return;
+  }
+
   // Always set the previous activated_folder_item_view_ to be visible. This
   // prevents a case where the item would remain hidden due the
   // |activated_folder_item_view_| changing during the animation. We only