|
@ -368,12 +368,13 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
builder = new Notification.Builder(this, "notification"); |
|
|
builder = new Notification.Builder(this, "notification"); |
|
|
|
|
|
|
|
|
builder |
|
|
builder |
|
|
.setSmallIcon(R.drawable.baseline_email_white_24) |
|
|
|
|
|
|
|
|
.setSmallIcon(R.drawable.ic_mail_icon) |
|
|
.setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, messages.size(), messages.size())) |
|
|
.setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, messages.size(), messages.size())) |
|
|
.setContentText("") |
|
|
.setContentText("") |
|
|
.setContentIntent(piView) |
|
|
.setContentIntent(piView) |
|
|
.setNumber(messages.size()) |
|
|
.setNumber(messages.size()) |
|
|
.setShowWhen(false) |
|
|
.setShowWhen(false) |
|
|
|
|
|
.setColor(ContextCompat.getColor(getBaseContext(), R.color.colorPrimary)) |
|
|
.setDeleteIntent(piClear) |
|
|
.setDeleteIntent(piClear) |
|
|
.setPriority(Notification.PRIORITY_DEFAULT) |
|
|
.setPriority(Notification.PRIORITY_DEFAULT) |
|
|
.setCategory(Notification.CATEGORY_STATUS) |
|
|
.setCategory(Notification.CATEGORY_STATUS) |
|
@ -449,7 +450,7 @@ public class ServiceSynchronize extends LifecycleService { |
|
|
|
|
|
|
|
|
mbuilder |
|
|
mbuilder |
|
|
.addExtras(args) |
|
|
.addExtras(args) |
|
|
.setSmallIcon(R.drawable.baseline_mail_24) |
|
|
|
|
|
|
|
|
.setSmallIcon(R.drawable.ic_stat_name) |
|
|
.setContentTitle(MessageHelper.getFormattedAddresses(message.from, true)) |
|
|
.setContentTitle(MessageHelper.getFormattedAddresses(message.from, true)) |
|
|
.setContentIntent(piContent) |
|
|
.setContentIntent(piContent) |
|
|
.setSound(uri) |
|
|
.setSound(uri) |
|
|