mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
use built-in TextUtils.join instead of StringBuilder
This commit is contained in:
parent
1bc3271de3
commit
21fe3f6cd2
@ -18,6 +18,7 @@ import android.os.Handler;
|
||||
import android.os.Parcelable;
|
||||
import android.support.v4.app.LoaderManager;
|
||||
import android.support.v4.content.Loader;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.text.util.Rfc822Tokenizer;
|
||||
import android.util.AttributeSet;
|
||||
@ -2776,12 +2777,9 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
||||
if (message.getMessageId() != null && message.getMessageId().length() > 0) {
|
||||
mInReplyTo = message.getMessageId();
|
||||
|
||||
if (message.getReferences() != null && message.getReferences().length > 0) {
|
||||
StringBuilder buffy = new StringBuilder();
|
||||
for (int i = 0; i < message.getReferences().length; i++)
|
||||
buffy.append(message.getReferences()[i]);
|
||||
|
||||
mReferences = buffy.toString() + " " + mInReplyTo;
|
||||
String[] refs = message.getReferences();
|
||||
if (refs != null && refs.length > 0) {
|
||||
mReferences = TextUtils.join("", refs) + " " + mInReplyTo;
|
||||
} else {
|
||||
mReferences = mInReplyTo;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user