Show full error message in notification

This commit is contained in:
Matt Smith 2021-07-17 15:36:18 +12:00
parent 591af9cdd5
commit baed7c09b8
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,7 @@ package com.fsck.k9.notification;
import android.app.PendingIntent;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationCompat.BigTextStyle;
import androidx.core.app.NotificationManagerCompat;
import com.fsck.k9.Account;
@ -40,6 +41,7 @@ class CertificateErrorNotifications {
.setContentTitle(title)
.setContentText(text)
.setContentIntent(editServerSettingsPendingIntent)
.setStyle(new BigTextStyle().bigText(text))
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setCategory(NotificationCompat.CATEGORY_ERROR);

View file

@ -3,6 +3,7 @@ package com.fsck.k9.notification;
import android.app.PendingIntent;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationCompat.BigTextStyle;
import androidx.core.app.NotificationManagerCompat;
import com.fsck.k9.Account;
@ -42,6 +43,7 @@ class SendFailedNotifications {
.setContentTitle(title)
.setContentText(text)
.setContentIntent(folderListPendingIntent)
.setStyle(new BigTextStyle().bigText(text))
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setCategory(NotificationCompat.CATEGORY_ERROR);