Show full error message in notification
This commit is contained in:
parent
591af9cdd5
commit
baed7c09b8
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue