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 cketti
parent 01937d4ab8
commit 37ae2e41f5
1 changed files with 2 additions and 1 deletions

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