Fix issues on Android 11 (#3067)

Add <queries> tag in manifest to be able to open file using external app and to use full feature of CustomTab
This commit is contained in:
Benoit Marty 2021-04-28 14:04:27 +02:00
parent 8b5d86f68d
commit 9cb19c0581
2 changed files with 17 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Bugfix 🐛:
- Fix exception in rxSingle (#3180)
- Do not invite the current user when creating a room (#3123)
- Fix color issues when the system theme is changed (#2738)
- Fix issues on Android 11 (#3067)
Translations 🗣:
-

View File

@ -48,6 +48,22 @@
android:name="android.hardware.camera.autofocus"
android:required="false" />
<!-- Since Android 11, see https://developer.android.com/training/package-visibility -->
<queries>
<!-- To open URL in CustomTab (prefetch, etc.). It makes CustomTabsClient.getPackageName() work
see https://developer.android.com/training/package-visibility/use-cases#open-urls-custom-tabs -->
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
<!-- The app can open attachments of any mime type
see https://developer.android.com/training/package-visibility/use-cases#open-a-file -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:mimeType="*/*" />
</intent>
</queries>
<application
android:name=".VectorApplication"
android:allowBackup="false"