Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2abe7d2b authored by cketti's avatar cketti
Browse files

Replace usage of `android.text.TextUtils` in `Address`

parent e619d381
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+11 −0
Original line number Diff line number Diff line
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)
    }
}