Fixed crash

pull/152/head
M66B 6 years ago
parent d7e7371603
commit 41e16cab20

@ -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…
Cancel
Save