mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Merge pull request #380
Fix notification showing "null" when sending mail
This commit is contained in:
commit
430a67adfa
@ -3352,8 +3352,13 @@ public class MessagingController implements Runnable {
|
||||
builder.setSmallIcon(R.drawable.ic_notify_check_mail);
|
||||
builder.setWhen(System.currentTimeMillis());
|
||||
builder.setOngoing(true);
|
||||
|
||||
String accountDescription = account.getDescription();
|
||||
String accountName = (TextUtils.isEmpty(accountDescription)) ?
|
||||
account.getEmail() : accountDescription;
|
||||
|
||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
||||
account.getDescription()));
|
||||
accountName));
|
||||
|
||||
builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
|
||||
builder.setContentText(account.getDescription());
|
||||
|
Loading…
Reference in New Issue
Block a user