diff options
author | Selim Cinek <cinek@google.com> | 2014-08-19 22:29:02 +0200 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2014-08-20 14:25:18 +0200 |
commit | 255dd04271088590fedc46c8e22b2fd4ab142d39 (patch) | |
tree | 9b0087d4e1cee5335f4d55b037b5e3a6ff13a30f /packages/SystemUI/src/com/android/systemui/screenshot | |
parent | 5e85359a36c14c0c568b73f138f6c8f4baad9b8e (diff) | |
download | frameworks_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/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index d4c8ce3..d9fea47 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java @@ -164,7 +164,8 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi .setContentTitle(r.getString(R.string.screenshot_saving_title)) .setContentText(r.getString(R.string.screenshot_saving_text)) .setSmallIcon(R.drawable.stat_notify_image) - .setWhen(now); + .setWhen(now) + .setColor(r.getColor(com.android.internal.R.color.system_notification_accent_color)); mNotificationStyle = new Notification.BigPictureStyle() .bigPicture(preview); @@ -177,7 +178,9 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi .setContentText(r.getString(R.string.screenshot_saving_text)) .setSmallIcon(R.drawable.stat_notify_image) .setCategory(Notification.CATEGORY_PROGRESS) - .setWhen(now); + .setWhen(now) + .setColor(r.getColor( + com.android.internal.R.color.system_notification_accent_color)); mNotificationBuilder.setPublicVersion(mPublicNotificationBuilder.build()); @@ -304,7 +307,9 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi .setContentText(r.getString(R.string.screenshot_saved_text)) .setContentIntent(PendingIntent.getActivity(params.context, 0, launchIntent, 0)) .setWhen(now) - .setAutoCancel(true); + .setAutoCancel(true) + .setColor(r.getColor( + com.android.internal.R.color.system_notification_accent_color));; // Update the text in the public version as well mPublicNotificationBuilder @@ -312,7 +317,9 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi .setContentText(r.getString(R.string.screenshot_saved_text)) .setContentIntent(PendingIntent.getActivity(params.context, 0, launchIntent, 0)) .setWhen(now) - .setAutoCancel(true); + .setAutoCancel(true) + .setColor(r.getColor( + com.android.internal.R.color.system_notification_accent_color)); mNotificationBuilder.setPublicVersion(mPublicNotificationBuilder.build()); @@ -717,7 +724,9 @@ class GlobalScreenshot { .setWhen(System.currentTimeMillis()) .setVisibility(Notification.VISIBILITY_PUBLIC) // ok to show outside lockscreen .setCategory(Notification.CATEGORY_ERROR) - .setAutoCancel(true); + .setAutoCancel(true) + .setColor(context.getResources().getColor( + com.android.internal.R.color.system_notification_accent_color)); Notification n = new Notification.BigTextStyle(b) .bigText(r.getString(R.string.screenshot_failed_text)) |