Merge pull request #380

Fix notification showing "null" when sending mail
This commit is contained in:
cketti 2013-09-13 00:11:30 +02:00
commit 430a67adfa

View file

@ -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());