mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 06:25:06 -05:00
fixed displaying of "(null)" account description in notification at account setup wizard
This commit is contained in:
parent
01937d4ab8
commit
37ae2e41f5
@ -3982,7 +3982,8 @@ public class MessagingController implements Runnable {
|
|||||||
Intent i = FolderList.actionHandleNotification(context, account, message.getFolder().getName());
|
Intent i = FolderList.actionHandleNotification(context, account, message.getFolder().getName());
|
||||||
PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0);
|
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);
|
notif.setLatestEventInfo(context, accountNotice, messageNotice, pi);
|
||||||
|
|
||||||
// Only ring or vibrate if we have not done so already on this
|
// Only ring or vibrate if we have not done so already on this
|
||||||
|
Loading…
Reference in New Issue
Block a user