diff --git a/app/core/src/main/java/com/fsck/k9/helper/MailTo.kt b/app/core/src/main/java/com/fsck/k9/helper/MailTo.kt index b924f7ee9e5..b3b352f16ef 100644 --- a/app/core/src/main/java/com/fsck/k9/helper/MailTo.kt +++ b/app/core/src/main/java/com/fsck/k9/helper/MailTo.kt @@ -7,8 +7,12 @@ import com.fsck.k9.mail.internet.MessageIdParser.Companion.parseList import com.fsck.k9.mail.internet.MimeHeaderParserException class MailTo private constructor( - val to: Array
, val cc: Array, val bcc: Array, val inReplyTo: String?, - @JvmField val subject: String?, @JvmField val body: String? + val to: Array, + val cc: Array, + val bcc: Array, + val inReplyTo: String?, + @JvmField val subject: String?, + @JvmField val body: String?, ) { internal class CaseInsensitiveParamWrapper(private val uri: Uri) { @@ -29,6 +33,7 @@ class MailTo private constructor( private const val BCC = "bcc" private const val SUBJECT = "subject" private val EMPTY_ADDRESS_LIST = arrayOfNulls(0) + @JvmStatic fun isMailTo(uri: Uri?): Boolean { return uri != null && MAILTO_SCHEME == uri.scheme