mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
@@ -214,8 +214,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
|
||||
builder
|
||||
.setSmallIcon(R.drawable.baseline_mail_outline_24)
|
||||
.setContentTitle(getString(R.string.title_notification_synchronizing, accounts))
|
||||
.setContentText(getString(R.string.title_notification_operations, operations))
|
||||
.setContentTitle(getResources().getQuantityString(R.plurals.title_notification_synchronizing, accounts, accounts))
|
||||
.setContentIntent(pi)
|
||||
.setAutoCancel(false)
|
||||
.setShowWhen(false)
|
||||
@@ -223,6 +222,9 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
.setCategory(Notification.CATEGORY_STATUS)
|
||||
.setVisibility(Notification.VISIBILITY_SECRET);
|
||||
|
||||
if (operations > 0)
|
||||
builder.setContentText(getResources().getQuantityString(R.plurals.title_notification_operations, operations, operations));
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
@@ -249,7 +251,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
|
||||
builder
|
||||
.setSmallIcon(R.drawable.baseline_mail_24)
|
||||
.setContentTitle(getString(R.string.title_notification_unseen, unseen))
|
||||
.setContentTitle(getResources().getQuantityString(R.plurals.title_notification_unseen, unseen, unseen))
|
||||
.setContentIntent(pi)
|
||||
.setSound(uri)
|
||||
.setShowWhen(false)
|
||||
|
||||
Reference in New Issue
Block a user