summaryrefslogtreecommitdiffstats
path: root/services/usb
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-03-18 18:37:18 -0700
committerAlan Viverette <alanv@google.com>2015-03-18 18:37:18 -0700
commit4a357cd2e55293402d7172766f7f9419815fc1e8 (patch)
treef2cedee7f41f48a8141a2798ca6100912553e4ef /services/usb
parentf2560e62cf26cae64f5751b0479743e09cb7bd7f (diff)
downloadframeworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.zip
frameworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.tar.gz
frameworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.tar.bz2
Replace usages of deprecated Resources.getColor() and getColorStateList()
Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
Diffstat (limited to 'services/usb')
-rw-r--r--services/usb/java/com/android/server/usb/UsbDeviceManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
index b7ed8d1..41cf2ef 100644
--- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java
+++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
@@ -771,7 +771,7 @@ public class UsbDeviceManager {
"com.android.settings.UsbSettings"));
PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0,
intent, 0, null, UserHandle.CURRENT);
- notification.color = mContext.getResources().getColor(
+ notification.color = mContext.getColor(
com.android.internal.R.color.system_notification_accent_color);
notification.setLatestEventInfo(mContext, title, message, pi);
notification.visibility = Notification.VISIBILITY_PUBLIC;
@@ -809,7 +809,7 @@ public class UsbDeviceManager {
"com.android.settings.DevelopmentSettings"));
PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0,
intent, 0, null, UserHandle.CURRENT);
- notification.color = mContext.getResources().getColor(
+ notification.color = mContext.getColor(
com.android.internal.R.color.system_notification_accent_color);
notification.setLatestEventInfo(mContext, title, message, pi);
notification.visibility = Notification.VISIBILITY_PUBLIC;