Android 11 preparations

This commit is contained in:
M66B 2020-06-13 16:32:18 +02:00
parent fe1a004c5e
commit 1c2383cb13
2 changed files with 11 additions and 6 deletions

View File

@ -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"

View File

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