mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Fix "sending message failed" notifications to actually report the server
error
This commit is contained in:
parent
af9b40dda4
commit
c305397d05
@ -2897,7 +2897,7 @@ public class MessagingController implements Runnable {
|
|||||||
|
|
||||||
PendingIntent pi = PendingIntent.getActivity(mApplication, 0, i, 0);
|
PendingIntent pi = PendingIntent.getActivity(mApplication, 0, i, 0);
|
||||||
|
|
||||||
notif.setLatestEventInfo(mApplication, mApplication.getString(R.string.send_failure_subject), lastFailure.getMessage(), pi);
|
notif.setLatestEventInfo(mApplication, mApplication.getString(R.string.send_failure_subject), getRootCauseMessage(lastFailure), pi);
|
||||||
|
|
||||||
configureNotification(notif, null, null, K9.NOTIFICATION_LED_SENDING_FAILURE_COLOR, K9.NOTIFICATION_LED_BLINK_FAST, true);
|
configureNotification(notif, null, null, K9.NOTIFICATION_LED_SENDING_FAILURE_COLOR, K9.NOTIFICATION_LED_BLINK_FAST, true);
|
||||||
notif.flags |= Notification.FLAG_AUTO_CANCEL;
|
notif.flags |= Notification.FLAG_AUTO_CANCEL;
|
||||||
|
Loading…
Reference in New Issue
Block a user