Index: ui/app_list/views/search_box_view.cc |
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc |
index 7841388bd63fffa5cdfefc49a25236866a59fb02..77236d3f3c1d9ae1a2c044dee41923f7cf57823b 100644 |
--- a/ui/app_list/views/search_box_view.cc |
+++ b/ui/app_list/views/search_box_view.cc |
@@ -54,6 +54,7 @@ |
constexpr int kBackgroundBorderCornerRadius = 2; |
constexpr int kBackgroundBorderCornerRadiusFullscreen = 24; |
+ |
constexpr int kGoogleIconSize = 24; |
constexpr int kMicIconSize = 24; |
@@ -367,8 +368,11 @@ |
UpdateModel(); |
view_delegate_->AutoLaunchCanceled(); |
NotifyQueryChanged(); |
- if (is_fullscreen_app_list_enabled_) |
- app_list_view_->SetStateFromSearchBoxView(search_box_->text().empty()); |
+ |
+ if (is_fullscreen_app_list_enabled_ && !app_list_view_->is_fullscreen()) { |
+ // If the app list is in the peeking state, switch it to fullscreen. |
+ app_list_view_->SetState(AppListView::FULLSCREEN); |
+ } |
} |
bool SearchBoxView::HandleKeyEvent(views::Textfield* sender, |