1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-10-31 23:55:08 -04:00

fixed displaying of "(null)" account description in notification at account setup wizard

This commit is contained in:
Vitaly Polonetsky 2011-05-05 04:25:58 +08:00 committed by Jesse Vincent
parent fa18ab57bb
commit 8b8f7f3460

View File

@ -3982,7 +3982,8 @@ public class MessagingController implements Runnable {
Intent i = FolderList.actionHandleNotification(context, account, message.getFolder().getName());
PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0);
String accountNotice = context.getString(R.string.notification_new_one_account_fmt, unreadCount, account.getDescription());
String accountDescr = (account.getDescription() != null) ? account.getDescription() : account.getEmail();
String accountNotice = context.getString(R.string.notification_new_one_account_fmt, unreadCount, accountDescr);
notif.setLatestEventInfo(context, accountNotice, messageNotice, pi);
// Only ring or vibrate if we have not done so already on this