Clean up code
This commit is contained in:
parent
e633814061
commit
b95c079a28
1 changed files with 7 additions and 7 deletions
|
@ -3352,13 +3352,13 @@ public class MessagingController implements Runnable {
|
||||||
builder.setSmallIcon(R.drawable.ic_notify_check_mail);
|
builder.setSmallIcon(R.drawable.ic_notify_check_mail);
|
||||||
builder.setWhen(System.currentTimeMillis());
|
builder.setWhen(System.currentTimeMillis());
|
||||||
builder.setOngoing(true);
|
builder.setOngoing(true);
|
||||||
if(!TextUtils.isEmpty(account.getDescription())) {
|
|
||||||
|
String accountDescription = account.getDescription();
|
||||||
|
String accountName = (TextUtils.isEmpty(accountDescription)) ?
|
||||||
|
account.getEmail() : accountDescription;
|
||||||
|
|
||||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
||||||
account.getDescription()));
|
accountName));
|
||||||
}else {
|
|
||||||
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
|
|
||||||
account.getEmail()));
|
|
||||||
}
|
|
||||||
|
|
||||||
builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
|
builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
|
||||||
builder.setContentText(account.getDescription());
|
builder.setContentText(account.getDescription());
|
||||||
|
|
Loading…
Reference in a new issue