mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fix issue_5931_shows_null_in_notification_while_sending_mail
This commit is contained in:
parent
6820a8ab62
commit
e633814061
@ -3352,8 +3352,13 @@ public class MessagingController implements Runnable {
|
||||
builder.setSmallIcon(R.drawable.ic_notify_check_mail);
|
||||
builder.setWhen(System.currentTimeMillis());
|
||||
builder.setOngoing(true);
|
||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
||||
account.getDescription()));
|
||||
if(!TextUtils.isEmpty(account.getDescription())) {
|
||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
||||
account.getDescription()));
|
||||
}else {
|
||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
||||
account.getEmail()));
|
||||
}
|
||||
|
||||
builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
|
||||
builder.setContentText(account.getDescription());
|
||||
|
Loading…
Reference in New Issue
Block a user