mirror of https://github.com/M66B/FairEmail.git
Android 11 preparations
This commit is contained in:
parent
fe1a004c5e
commit
1c2383cb13
|
@ -38,11 +38,15 @@
|
|||
android:required="false" />
|
||||
|
||||
<!-- Android 11: https://developer.android.com/preview/privacy/package-visibility -->
|
||||
<!--queries>
|
||||
<intent>
|
||||
<action android:name="org.openintents.openpgp.IOpenPgpService2" />
|
||||
</intent>
|
||||
</queries-->
|
||||
<queries>
|
||||
<!--intent>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<data android:mimeType="*/*" />
|
||||
</intent-->
|
||||
|
||||
<package android:name="org.sufficientlysecure.keychain" />
|
||||
<package android:name="org.sufficientlysecure.keychain.debug" />
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:name=".ApplicationEx"
|
||||
|
|
|
@ -353,7 +353,8 @@ public class Helper {
|
|||
PackageManager pm = context.getPackageManager();
|
||||
Intent view = new Intent(Intent.ACTION_VIEW, uri);
|
||||
|
||||
for (ResolveInfo info : pm.queryIntentActivities(view, 0)) {
|
||||
List<ResolveInfo> ris = pm.queryIntentActivities(view, 0);
|
||||
for (ResolveInfo info : ris) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(ACTION_CUSTOM_TABS_CONNECTION);
|
||||
intent.setPackage(info.activityInfo.packageName);
|
||||
|
|
Loading…
Reference in New Issue