Index: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java |
index 3be0823a51b04cf5318915ffbd5ece4a8e3dd678..d8d789237fe2d71367319130ad29610b26a007dd 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java |
@@ -19,6 +19,7 @@ import android.widget.ImageView; |
import android.widget.ListView; |
import android.widget.TextView; |
+import org.chromium.base.ApiCompatibilityUtils; |
import org.chromium.chrome.R; |
import org.chromium.chrome.browser.widget.TintedImageButton; |
import org.chromium.ui.base.LocalizationUtils; |
@@ -253,7 +254,8 @@ class AppMenuAdapter extends BaseAdapter { |
button.setImageDrawable(item.getIcon()); |
item.getIcon().setLevel(currentLevel); |
if (item.isChecked()) { |
- button.setTint(button.getResources().getColorStateList(R.color.blue_mode_tint)); |
+ button.setTint(ApiCompatibilityUtils.getColorStateList( |
+ button.getResources(), R.color.blue_mode_tint)); |
} |
button.setEnabled(item.isEnabled()); |
button.setFocusable(item.isEnabled()); |