Changed launch mode of EML/DSN/AMP/DMARC viewers

This commit is contained in:
M66B
2022-04-01 13:17:05 +02:00
parent 200ff5b51c
commit f4c4a9f675
6 changed files with 20 additions and 28 deletions

View File

@@ -690,14 +690,6 @@ public class Helper {
intent.setDataAndTypeAndNormalize(uri, type);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
if (!("message/rfc822".equals(type) ||
"message/delivery-status".equals(type) ||
"message/disposition-notification".equals(type) ||
"text/rfc822-headers".equals(type) ||
"text/x-amp-html".equals(type) ||
"text/xml".equals(type) /* DMARC */))
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
if (!TextUtils.isEmpty(name))
intent.putExtra(Intent.EXTRA_TITLE, Helper.sanitizeFilename(name));
Log.i("Intent=" + intent + " type=" + type);