summaryrefslogtreecommitdiffstats
path: root/services/usb
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-08-19 22:29:02 +0200
committerSelim Cinek <cinek@google.com>2014-08-20 14:25:18 +0200
commit255dd04271088590fedc46c8e22b2fd4ab142d39 (patch)
tree9b0087d4e1cee5335f4d55b037b5e3a6ff13a30f /services/usb
parent5e85359a36c14c0c568b73f138f6c8f4baad9b8e (diff)
downloadframeworks_base-255dd04271088590fedc46c8e22b2fd4ab142d39.zip
frameworks_base-255dd04271088590fedc46c8e22b2fd4ab142d39.tar.gz
frameworks_base-255dd04271088590fedc46c8e22b2fd4ab142d39.tar.bz2
Added notification color to all system notifications
Bug: 17128331 Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
Diffstat (limited to 'services/usb')
-rw-r--r--services/usb/java/com/android/server/usb/UsbDeviceManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
index c0923ca..c078cb2 100644
--- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java
+++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java
@@ -732,6 +732,8 @@ public class UsbDeviceManager {
"com.android.settings.UsbSettings"));
PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0,
intent, 0, null, UserHandle.CURRENT);
+ notification.color = mContext.getResources().getColor(
+ com.android.internal.R.color.system_notification_accent_color);
notification.setLatestEventInfo(mContext, title, message, pi);
notification.visibility = Notification.VISIBILITY_PUBLIC;
mNotificationManager.notifyAsUser(null, id, notification,
@@ -768,6 +770,8 @@ public class UsbDeviceManager {
"com.android.settings.DevelopmentSettings"));
PendingIntent pi = PendingIntent.getActivityAsUser(mContext, 0,
intent, 0, null, UserHandle.CURRENT);
+ notification.color = mContext.getResources().getColor(
+ com.android.internal.R.color.system_notification_accent_color);
notification.setLatestEventInfo(mContext, title, message, pi);
notification.visibility = Notification.VISIBILITY_PUBLIC;
mAdbNotificationShown = true;