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); .setVisibility(NotificationCompat.VISIBILITY_SECRET);
if (lastUnsent > 0) if (lastUnsent > 0)
builder.setStyle(new NotificationCompat.BigTextStyle().setSummaryText( builder.setContentText(getResources().getQuantityString(
getResources().getQuantityString( R.plurals.title_notification_unsent, lastUnsent, lastUnsent));
R.plurals.title_notification_unsent, lastUnsent, lastUnsent)));
return builder; return builder;
} }

@ -214,9 +214,8 @@ public class ServiceSynchronize extends LifecycleService {
.setVisibility(NotificationCompat.VISIBILITY_SECRET); .setVisibility(NotificationCompat.VISIBILITY_SECRET);
if (lastStats.operations > 0) if (lastStats.operations > 0)
builder.setStyle(new NotificationCompat.BigTextStyle().setSummaryText( builder.setContentText(getResources().getQuantityString(
getResources().getQuantityString( R.plurals.title_notification_operations, lastStats.operations, lastStats.operations));
R.plurals.title_notification_operations, lastStats.operations, lastStats.operations)));
return builder; return builder;
} }

Loading…
Cancel
Save