Add cross profile intent in order after intent filter resolution

The elements returned by queryIntentActivities must be in order, as specified in the Javadoc. Otherwise the ResolverActivity will incorrectly filter out intents if they follow another intent with lower priority than the ones that will be shown to the user.

Bug: 15906680
Change-Id: I755e05d3017ee124cbae468f51fa86cfdf42b483
This commit is contained in:
Esteban Talavera
2014-08-18 14:11:47 +01:00
parent 4f82d40e9f
commit 54edd1cdc4

View File

@@ -3282,6 +3282,7 @@ public class PackageManagerService extends IPackageManager.Stub {
intent, resolvedType, flags, userId);
if (resolveInfo != null) {
result.add(resolveInfo);
Collections.sort(result, mResolvePrioritySorter);
}
return result;
}