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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.java
index 8d2a18c127ee5b77b59f2178d665a7f68af27244..9c81b9b18c3d9fcbc637f73b65b30100f76c256a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbarPhone.java
@@ -44,14 +44,16 @@ public class FindToolbarPhone extends FindToolbar {
int queryTextColorId;
if (isIncognito) {
setBackgroundResource(R.color.incognito_primary_color);
- ColorStateList white = getResources().getColorStateList(R.color.light_mode_tint);
+ ColorStateList white = ApiCompatibilityUtils.getColorStateList(getResources(),
+ R.color.light_mode_tint);
mFindNextButton.setTint(white);
mFindPrevButton.setTint(white);
mCloseFindButton.setTint(white);
queryTextColorId = R.color.find_in_page_query_white_color;
} else {
setBackgroundColor(Color.WHITE);
- ColorStateList dark = getResources().getColorStateList(R.color.dark_mode_tint);
+ ColorStateList dark = ApiCompatibilityUtils.getColorStateList(getResources(),
+ R.color.dark_mode_tint);
mFindNextButton.setTint(dark);
mFindPrevButton.setTint(dark);
mCloseFindButton.setTint(dark);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/widget/TintedDrawable.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698