Commit 02eca7b1 authored by Toni Barzic's avatar Toni Barzic Committed by Commit Bot

app_list: Reset search result page opacity in ResetForShow

The search result page opacity might get set to a partially opaque
value during app list drag - this resets the opacity to 1.0 before
showing app list view again (in case the app list was dragged really
close to shelf before closing, in which case last opacity set on the
layer might have been small).
This should not affect initial search result page appearance (as
the page starts in invisible state).

BUG=1027805

Change-Id: I7a5fbd22647f976a22a39aa61a4f44ab03756215
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936108Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720745}
parent c5839759
...@@ -176,6 +176,9 @@ void ContentsView::ResetForShow() { ...@@ -176,6 +176,9 @@ void ContentsView::ResetForShow() {
// SetActiveState() since it checks the visibility of the pages. // SetActiveState() since it checks the visibility of the pages.
horizontal_page_container_->SetVisible(true); horizontal_page_container_->SetVisible(true);
search_results_page_view_->SetVisible(false); search_results_page_view_->SetVisible(false);
// SearchBoxView::UpdateOpacity() may change search result page opacity during
// drag - make sure that opacity value is reset to 1.0f.
search_results_page_view_->layer()->SetOpacity(1.0f);
if (assistant_page_view_) if (assistant_page_view_)
assistant_page_view_->SetVisible(false); assistant_page_view_->SetVisible(false);
SetActiveState(ash::AppListState::kStateApps, /*animate=*/false); SetActiveState(ash::AppListState::kStateApps, /*animate=*/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