diff --git a/app-android/src/main/java/io/github/droidkaigi/confsched/KaigiApp.kt b/app-android/src/main/java/io/github/droidkaigi/confsched/KaigiApp.kt index 97821b8c3..9430704d0 100644 --- a/app-android/src/main/java/io/github/droidkaigi/confsched/KaigiApp.kt +++ b/app-android/src/main/java/io/github/droidkaigi/confsched/KaigiApp.kt @@ -394,6 +394,14 @@ private class ExternalNavController( ): Boolean { val pm = context.packageManager + // Get all apps that resolve the specific Url + val specializedActivityIntent = Intent(Intent.ACTION_VIEW, uri) + .addCategory(Intent.CATEGORY_BROWSABLE) + val resolvedSpecializedList: MutableSet = + pm.queryIntentActivities(specializedActivityIntent, 0) + .map { it.activityInfo.packageName } + .toMutableSet() + // Get all Apps that resolve a generic url val browserActivityIntent = Intent() .setAction(Intent.ACTION_VIEW) @@ -404,14 +412,6 @@ private class ExternalNavController( .map { it.activityInfo.packageName } .toSet() - // Get all apps that resolve the specific Url - val specializedActivityIntent = Intent(Intent.ACTION_VIEW, uri) - .addCategory(Intent.CATEGORY_BROWSABLE) - val resolvedSpecializedList: MutableSet = - pm.queryIntentActivities(specializedActivityIntent, 0) - .map { it.activityInfo.packageName } - .toMutableSet() - // Keep only the Urls that resolve the specific, but not the generic urls. resolvedSpecializedList.removeAll(genericResolvedList)