Make sure ActivityListener.getOperation() never returns null

This commit is contained in:
cketti 2012-09-14 01:28:52 +02:00
parent 0878de5936
commit 93be25bf37
1 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class ActivityListener extends MessagingListener {
}
public String getOperation(Context context, DateFormat timeFormat){
String operation = null;
String operation;
String progress = null;
if (mLoadingAccountDescription != null
|| mSendingAccountDescription != null
@ -61,6 +61,8 @@ public class ActivityListener extends MessagingListener {
operation = context.getString(R.string.status_processing_account, mProcessingAccountDescription,
mProcessingCommandTitle != null ? mProcessingCommandTitle : "",
progress);
} else {
operation = "";
}
} else {
long nextPollTime = MailService.getNextPollTime();