Fixed crash

This commit is contained in:
M66B 2019-03-03 09:17:42 +00:00
parent d7e7371603
commit 41e16cab20
2 changed files with 4 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}