1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

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.
This commit is contained in:
Joe Steele 2014-03-01 11:27:24 -05:00
parent d67c054d4d
commit c8150a12fa

View File

@ -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);