Add intent filter to main activity to provide default email application setting.

Adds intent filter [`CATEGORY_APP_EMAIL`] in order to provide the app's activity as possible default email application. This must be interpreted by Android and [set by the user outside of the application][1].

The new intent-filter for `APP_EMAIL` was added to activity `MessageList`.

[`CATEGORY_APP_EMAIL`]: https://developer.android.com/reference/android/content/Intent.html#CATEGORY_APP_EMAIL
[1]: https://github.com/k9mail/k-9/issues/3231#issuecomment-515759615
This commit is contained in:
Henry 2019-12-28 17:59:48 +01:00 committed by David Hebbeker
parent 4bf1ef1dbe
commit 28b8cabb2c
No known key found for this signature in database
GPG key ID: A4BF9020F86771B0

View file

@ -194,6 +194,7 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.APP_EMAIL"/>
<!-- TODO: Remove once minSdkVersion has been changed to 24+ -->
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>