Replace usage of android.text.TextUtils
in Address
This commit is contained in:
parent
e619d38143
commit
2abe7d2b9f
2 changed files with 12 additions and 1 deletions
|
@ -7,6 +7,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.fsck.k9.mail.helper.TextUtils;
|
||||
import org.apache.james.mime4j.MimeException;
|
||||
import org.apache.james.mime4j.codec.DecodeMonitor;
|
||||
import org.apache.james.mime4j.codec.EncoderUtil;
|
||||
|
@ -17,7 +18,6 @@ import org.jetbrains.annotations.NotNull;
|
|||
import org.jetbrains.annotations.VisibleForTesting;
|
||||
import timber.log.Timber;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.text.util.Rfc822Token;
|
||||
import android.text.util.Rfc822Tokenizer;
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package com.fsck.k9.mail.helper
|
||||
|
||||
object TextUtils {
|
||||
@JvmStatic
|
||||
fun isEmpty(text: String?) = text.isNullOrEmpty()
|
||||
|
||||
@JvmStatic
|
||||
fun join(separator: String, items: Array<Any>): String {
|
||||
return items.joinToString(separator)
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue