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

pull/207/head
M66B 4 years ago
parent 200ff5b51c
commit f4c4a9f675

@ -310,7 +310,7 @@
android:name=".ActivityEML"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -344,7 +344,7 @@
android:name=".ActivityDSN"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -364,7 +364,7 @@
android:name=".ActivityAMP"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -383,7 +383,7 @@
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

@ -309,7 +309,7 @@
android:name=".ActivityEML"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -343,7 +343,7 @@
android:name=".ActivityDSN"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -363,7 +363,7 @@
android:name=".ActivityAMP"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -382,7 +382,7 @@
android:enabled="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

@ -309,7 +309,7 @@
android:name=".ActivityEML"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -343,7 +343,7 @@
android:name=".ActivityDSN"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -363,7 +363,7 @@
android:name=".ActivityAMP"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -382,7 +382,7 @@
android:enabled="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

@ -309,7 +309,7 @@
android:name=".ActivityEML"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -343,7 +343,7 @@
android:name=".ActivityDSN"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -363,7 +363,7 @@
android:name=".ActivityAMP"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -381,7 +381,7 @@
android:name=".ActivityDmarc"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

@ -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);

@ -310,7 +310,7 @@
android:name=".ActivityEML"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -344,7 +344,7 @@
android:name=".ActivityDSN"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -364,7 +364,7 @@
android:name=".ActivityAMP"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
@ -383,7 +383,7 @@
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask">
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

Loading…
Cancel
Save