Merge pull request #380
Fix notification showing "null" when sending mail
This commit is contained in:
commit
430a67adfa
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue