Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Issue 2799803004: Fixing the pink toolbar icons in Chrome Remote Desktop Android app (Closed)

Created:
3 years, 8 months ago by joedow
Modified:
3 years, 8 months ago
Reviewers:
Lambros
CC:
chromium-reviews, agrieve+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/ChromotingUtil.java View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
joedow
PTAL!
3 years, 8 months ago (2017-04-06 22:58:52 UTC) #4
Lambros
lgtm
3 years, 8 months ago (2017-04-06 23:14:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799803004/1
3 years, 8 months ago (2017-04-06 23:15:11 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 23:36:33 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2fd7014105d562d587191d8875f9...

Powered by Google App Engine
This is Rietveld 408576698