1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Clean up code

This commit is contained in:
cketti 2013-09-13 00:10:33 +02:00
parent e633814061
commit b95c079a28

View File

@ -3352,13 +3352,13 @@ public class MessagingController implements Runnable {
builder.setSmallIcon(R.drawable.ic_notify_check_mail);
builder.setWhen(System.currentTimeMillis());
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,
account.getDescription()));
}else {
builder.setTicker(mApplication.getString(R.string.notification_bg_send_ticker,
account.getEmail()));
}
accountName));
builder.setContentTitle(mApplication.getString(R.string.notification_bg_send_title));
builder.setContentText(account.getDescription());