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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.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/omnibox/SuggestionView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
index 9d0d3c9f7a17752d9af961e9a696253ac30d5ec4..65664987d92f7acea560909b5850d2a5efce676f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionView.java
@@ -394,9 +394,8 @@ class SuggestionView extends ViewGroup {
mRefineIcon = TintedDrawable.constructTintedDrawable(
getResources(), R.drawable.btn_suggestion_refine);
- mRefineIcon.setTint(getResources().getColorStateList(mUseDarkColors
- ? R.color.dark_mode_tint
- : R.color.light_mode_tint));
+ mRefineIcon.setTint(ApiCompatibilityUtils.getColorStateList(getResources(),
+ mUseDarkColors ? R.color.dark_mode_tint : R.color.light_mode_tint));
mRefineIcon.setBounds(
0, 0,
mRefineIcon.getIntrinsicWidth(),

Powered by Google App Engine
This is Rietveld 408576698