summaryrefslogtreecommitdiffstats
path: root/packages/Shell
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 /packages/Shell
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 'packages/Shell')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportReceiver.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportReceiver.java b/packages/Shell/src/com/android/shell/BugreportReceiver.java
index 7a659ee..02a3aeb 100644
--- a/packages/Shell/src/com/android/shell/BugreportReceiver.java
+++ b/packages/Shell/src/com/android/shell/BugreportReceiver.java
@@ -84,14 +84,17 @@ public class BugreportReceiver extends BroadcastReceiver {
}
notifIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- final Notification.Builder builder = new Notification.Builder(context);
- builder.setSmallIcon(com.android.internal.R.drawable.stat_sys_adb);
- builder.setContentTitle(context.getString(R.string.bugreport_finished_title));
- builder.setTicker(context.getString(R.string.bugreport_finished_title));
- builder.setContentText(context.getString(R.string.bugreport_finished_text));
- builder.setContentIntent(PendingIntent.getActivity(
- context, 0, notifIntent, PendingIntent.FLAG_CANCEL_CURRENT));
- builder.setAutoCancel(true);
+ final Notification.Builder builder = new Notification.Builder(context)
+ .setSmallIcon(com.android.internal.R.drawable.stat_sys_adb)
+ .setContentTitle(context.getString(R.string.bugreport_finished_title))
+ .setTicker(context.getString(R.string.bugreport_finished_title))
+ .setContentText(context.getString(R.string.bugreport_finished_text))
+ .setContentIntent(PendingIntent.getActivity(
+ context, 0, notifIntent, PendingIntent.FLAG_CANCEL_CURRENT))
+ .setAutoCancel(true)
+ .setColor(context.getResources().getColor(
+ com.android.internal.R.color.system_notification_accent_color));
+
NotificationManager.from(context).notify(TAG, 0, builder.build());
// Clean up older bugreports in background