Added optional send-to-self share target

This commit is contained in:
M66B
2023-06-08 08:55:37 +02:00
parent 7f62d73284
commit de0b082ea5
13 changed files with 303 additions and 1 deletions

View File

@@ -343,6 +343,44 @@
</intent-filter>
</activity>
<activity
android:name=".ActivitySendSelf"
android:enabled="false"
android:excludeFromRecents="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_send_self"
android:launchMode="singleTask"
android:resizeableActivity="true"
android:theme="@style/Theme.AppCompat.Translucent">
<meta-data
android:name="android.service.chooser.chooser_target_service"
android:value="androidx.sharetarget.ChooserTargetServiceCompat" />
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="mailto" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SENDTO" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="mailto" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</activity>
<activity
android:name=".ActivityClear"
android:excludeFromRecents="true"