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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.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/widget/TintedDrawable.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java
index c21f09a62d0c439a7c79b6b3aa16f28c38a767b3..b641c6da693903598e21dddeeddf9193ba986f28 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java
@@ -11,6 +11,7 @@ import android.graphics.BitmapFactory;
import android.graphics.PorterDuff;
import android.graphics.drawable.BitmapDrawable;
+import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
/**
@@ -25,7 +26,7 @@ public class TintedDrawable extends BitmapDrawable {
public TintedDrawable(Resources res, Bitmap bitmap) {
super(res, bitmap);
- mTint = res.getColorStateList(R.color.dark_mode_tint);
+ mTint = ApiCompatibilityUtils.getColorStateList(res, R.color.dark_mode_tint);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698