1
0
mirror of https://github.com/etesync/android synced 2025-05-25 10:18:48 +00:00

Add tutanota to the list of email clients not supporting attachments.

This list is the clients that don't support attachments when called from
an intent. We want to include debug info inline for those.
This commit is contained in:
Tom Hacohen 2019-03-26 16:10:52 +00:00
parent 66953c4956
commit 409f586835

View File

@ -16,7 +16,12 @@ import java.text.SimpleDateFormat
import java.util.* import java.util.*
fun emailSupportsAttachments(context: Context): Boolean { fun emailSupportsAttachments(context: Context): Boolean {
return !packageInstalled(context, "ch.protonmail.android") return !arrayOf(
"ch.protonmail.android",
"de.tutao.tutanota"
).any{
packageInstalled(context, it)
}
} }
class EventEmailInvitation constructor(val context: Context, val account: Account) { class EventEmailInvitation constructor(val context: Context, val account: Account) {