Commit b026d472 authored by Aga Wronska's avatar Aga Wronska Committed by Commit Bot

Fix status area color when immersive app is opened

Status area background color was incorrect when switching from
KioskNext home to immersive app, because shelf turns to auto-hide
mode then and both shelf and status area are not visible.

Bug: 949289
Change-Id: I28213355ea0f65d7638bd59714e50fbaceef3371
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1577944Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Commit-Queue: Aga Wronska <agawronska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653016}
parent 41951760
......@@ -1299,8 +1299,6 @@ bool ShelfLayoutManager::CalculateStatusAreaVisibility(
bool ShelfLayoutManager::ShouldRepaintStatusAreaOnStateChange(
ShelfLayoutManager::State old_state,
ShelfLayoutManager::State new_state) const {
if (!new_state.is_status_area_visible)
return false;
if (old_state.visibility_state == new_state.visibility_state)
return 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