Commit aca99270 authored by Matthew Jones's avatar Matthew Jones Committed by Commit Bot

Set flag for light drawables in ToolbarPhone

This patch sets a flag for using light toolbar drawables when the
visual state is update. This was incorrectly excluded with 227a972f.

Bug: 852682
Change-Id: I77a2e9f742720b48045a9f02ac1ab0a8ebb77429
Reviewed-on: https://chromium-review.googlesource.com/1104708Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568104}
parent 1f9dbee1
......@@ -2561,6 +2561,7 @@ public class ToolbarPhone extends ToolbarLayout
// Refresh the toolbar texture.
if ((mVisualState == VisualState.BRAND_COLOR || visualStateChanged)
&& mLayoutUpdateHost != null) {
setUseLightDrawablesForTextureCapture();
mLayoutUpdateHost.requestUpdate();
}
updateShadowVisibility();
......
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