diff --git a/app/common/src/main/AndroidManifest.xml b/app/common/src/main/AndroidManifest.xml index 80b7173e183..f2954d6f596 100644 --- a/app/common/src/main/AndroidManifest.xml +++ b/app/common/src/main/AndroidManifest.xml @@ -143,6 +143,11 @@ + + + + + diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java index b46316a20c2..442b02661f0 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageCompose.java @@ -19,6 +19,7 @@ import android.content.IntentSender.SendIntentException; import android.content.pm.ActivityInfo; import android.net.Uri; +import android.nfc.NfcAdapter; import android.os.AsyncTask; import android.os.Bundle; import android.os.Handler; @@ -503,9 +504,9 @@ private boolean initFromIntent(final Intent intent) { boolean startedByExternalIntent = false; final String action = intent.getAction(); - if (Intent.ACTION_VIEW.equals(action) || Intent.ACTION_SENDTO.equals(action)) { + if (Intent.ACTION_VIEW.equals(action) || Intent.ACTION_SENDTO.equals(action) || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) { /* - * Someone has clicked a mailto: link. The address is in the URI. + * Someone has clicked a mailto: link, or scanned an NFC tag. The address is in the URI. */ if (intent.getData() != null) { Uri uri = intent.getData();