Android 11 preparations

pull/180/head
M66B 5 years ago
parent fe1a004c5e
commit 1c2383cb13

@ -38,11 +38,15 @@
android:required="false" /> android:required="false" />
<!-- Android 11: https://developer.android.com/preview/privacy/package-visibility --> <!-- Android 11: https://developer.android.com/preview/privacy/package-visibility -->
<!--queries> <queries>
<intent> <!--intent>
<action android:name="org.openintents.openpgp.IOpenPgpService2" /> <action android:name="android.intent.action.VIEW" />
</intent> <data android:mimeType="*/*" />
</queries--> </intent-->
<package android:name="org.sufficientlysecure.keychain" />
<package android:name="org.sufficientlysecure.keychain.debug" />
</queries>
<application <application
android:name=".ApplicationEx" android:name=".ApplicationEx"

@ -353,7 +353,8 @@ public class Helper {
PackageManager pm = context.getPackageManager(); PackageManager pm = context.getPackageManager();
Intent view = new Intent(Intent.ACTION_VIEW, uri); 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 intent = new Intent();
intent.setAction(ACTION_CUSTOM_TABS_CONNECTION); intent.setAction(ACTION_CUSTOM_TABS_CONNECTION);
intent.setPackage(info.activityInfo.packageName); intent.setPackage(info.activityInfo.packageName);

Loading…
Cancel
Save