From c8150a12fa839475d66c496d160f479a21b98501 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Sat, 1 Mar 2014 11:27:24 -0500 Subject: [PATCH] Show account name in certificate error notifications getName() shows the user's name from the first identity for the account. What we really want is getDescription(), which is the account name that shows in the account list. --- src/com/fsck/k9/controller/MessagingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/controller/MessagingController.java b/src/com/fsck/k9/controller/MessagingController.java index d1fdf20c0..f85bee3f2 100644 --- a/src/com/fsck/k9/controller/MessagingController.java +++ b/src/com/fsck/k9/controller/MessagingController.java @@ -2647,7 +2647,7 @@ public class MessagingController implements Runnable { final PendingIntent pi = PendingIntent.getActivity(context, account.getAccountNumber(), i, PendingIntent.FLAG_UPDATE_CURRENT); final String title = context.getString( - R.string.notification_certificate_error_title, account.getName()); + R.string.notification_certificate_error_title, account.getDescription()); final NotificationCompat.Builder builder = new NotificationBuilder(context); builder.setSmallIcon(R.drawable.ic_notify_new_mail);