diff options
author | Brian Attwell <brianattwell@google.com> | 2014-10-16 21:34:02 -0700 |
---|---|---|
committer | Brian Attwell <brianattwell@google.com> | 2014-10-17 20:49:00 +0000 |
commit | 01de4e9979e103406108b710930a4537ea67398a (patch) | |
tree | 7b97a4298c9ab9660f0f6776293cd7214f3321ed /src | |
parent | df17ea67f16fd2b7cb292a054f3326fb16b54d6f (diff) | |
download | android_packages_apps_ContactsCommon-01de4e9979e103406108b710930a4537ea67398a.tar.gz android_packages_apps_ContactsCommon-01de4e9979e103406108b710930a4537ea67398a.tar.bz2 android_packages_apps_ContactsCommon-01de4e9979e103406108b710930a4537ea67398a.zip |
Use brand colors in import/export notifications
Use Dialer/Contact's theme color (stored in the poorly named
dialtacts_theme_color variable).
Bug: 17424753
Change-Id: I0a743188de31a75d347843c78df8cbf55012ffaa
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/contacts/common/vcard/NotificationImportExportListener.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/vcard/NotificationImportExportListener.java b/src/com/android/contacts/common/vcard/NotificationImportExportListener.java index 41f6a50f..03d69a9a 100644 --- a/src/com/android/contacts/common/vcard/NotificationImportExportListener.java +++ b/src/com/android/contacts/common/vcard/NotificationImportExportListener.java @@ -220,6 +220,7 @@ public class NotificationImportExportListener implements VCardImportExportListen .setProgress(totalCount, currentCount, totalCount == - 1) .setTicker(tickerText) .setContentTitle(description) + .setColor(context.getResources().getColor(R.color.dialtacts_theme_color)) .setSmallIcon(type == VCardService.TYPE_IMPORT ? android.R.drawable.stat_sys_download : android.R.drawable.stat_sys_upload) @@ -243,6 +244,7 @@ public class NotificationImportExportListener implements VCardImportExportListen return new Notification.Builder(context) .setAutoCancel(true) .setSmallIcon(android.R.drawable.stat_notify_error) + .setColor(context.getResources().getColor(R.color.dialtacts_theme_color)) .setContentTitle(description) .setContentText(description) .setContentIntent(PendingIntent.getActivity(context, 0, new Intent(), 0)) @@ -260,6 +262,7 @@ public class NotificationImportExportListener implements VCardImportExportListen Context context, String title, String description, Intent intent) { return new Notification.Builder(context) .setAutoCancel(true) + .setColor(context.getResources().getColor(R.color.dialtacts_theme_color)) .setSmallIcon(android.R.drawable.stat_sys_download_done) .setContentTitle(title) .setContentText(description) @@ -278,6 +281,7 @@ public class NotificationImportExportListener implements VCardImportExportListen Context context, String reason) { return new Notification.Builder(context) .setAutoCancel(true) + .setColor(context.getResources().getColor(R.color.dialtacts_theme_color)) .setSmallIcon(android.R.drawable.stat_notify_error) .setContentTitle(context.getString(R.string.vcard_import_failed)) .setContentText(reason) |