DescriptionFixing the pink toolbar icons in Chrome Remote Desktop Android app
On certain platforms, the icons in our toolbar were tinted pink instead
of dark grey. I tracked this down to the API we use to retrieve the
icon color. We retrieve the color by using a resourceID from the current
context and pass it to a Chromium compat API. The problem is that our
resourceID is based on the current Theme and the compat getColor method
is not Theme aware. Therefore the ID retrieves a different color
resource than what we expected. Note that this is only a problem on M
and later releases.
The fix for us is to just use the Android ContextCompat class for the
color lookup instead of the Chromium version.
BUG=704150
Review-Url: https://codereview.chromium.org/2799803004
Cr-Commit-Position: refs/heads/master@{#462682}
Committed: https://chromium.googlesource.com/chromium/src/+/2fd7014105d562d587191d8875f98e448ce45508
Patch Set 1 #
Messages
Total messages: 12 (8 generated)
|