mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Fixed crash
This commit is contained in:
parent
d7e7371603
commit
41e16cab20
2 changed files with 4 additions and 6 deletions
|
@ -125,9 +125,8 @@ public class ServiceSend extends LifecycleService {
|
|||
.setVisibility(NotificationCompat.VISIBILITY_SECRET);
|
||||
|
||||
if (lastUnsent > 0)
|
||||
builder.setStyle(new NotificationCompat.BigTextStyle().setSummaryText(
|
||||
getResources().getQuantityString(
|
||||
R.plurals.title_notification_unsent, lastUnsent, lastUnsent)));
|
||||
builder.setContentText(getResources().getQuantityString(
|
||||
R.plurals.title_notification_unsent, lastUnsent, lastUnsent));
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
|
|
@ -214,9 +214,8 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
.setVisibility(NotificationCompat.VISIBILITY_SECRET);
|
||||
|
||||
if (lastStats.operations > 0)
|
||||
builder.setStyle(new NotificationCompat.BigTextStyle().setSummaryText(
|
||||
getResources().getQuantityString(
|
||||
R.plurals.title_notification_operations, lastStats.operations, lastStats.operations)));
|
||||
builder.setContentText(getResources().getQuantityString(
|
||||
R.plurals.title_notification_operations, lastStats.operations, lastStats.operations));
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue