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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java

Issue 1328743003: Update getColorStateList calls that were deprecated in M. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
index dddef523d8c8d094170c47e1973c6b03f37f7c0c..d94b9d72305c5bf0dd3d8446904f50b0fb356705 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java
@@ -1860,8 +1860,10 @@ public class ToolbarPhone extends ToolbarLayout
getProgressBar().setBackgroundColor(
ApiCompatibilityUtils.getColor(getResources(), progressBarBackgroundColorResource));
- ColorStateList dark = getResources().getColorStateList(R.color.dark_mode_tint);
- ColorStateList white = getResources().getColorStateList(R.color.light_mode_tint);
+ ColorStateList dark =
+ ApiCompatibilityUtils.getColorStateList(getResources(), R.color.dark_mode_tint);
+ ColorStateList white =
+ ApiCompatibilityUtils.getColorStateList(getResources(), R.color.light_mode_tint);
if (mToggleTabStackButton != null) {
mToggleTabStackButton.setImageDrawable(mUseLightToolbarDrawables

Powered by Google App Engine
This is Rietveld 408576698