From 41e16cab20bf937545c8a66ea46a56c7a0516e49 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 3 Mar 2019 09:17:42 +0000 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/ServiceSend.java | 5 ++--- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index 2451c74835..a197d20701 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -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; } diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 4067c58351..e143f1c4bf 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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; }