Merge "Resolve the home intent with MATCH_DEFAULT_ONLY"

This commit is contained in:
Louis Chang
2022-09-21 02:39:23 +00:00
committed by Android (Google) Code Review

View File

@@ -1487,8 +1487,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
} else {
final String resolvedType =
homeIntent.resolveTypeIfNeeded(mService.mContext.getContentResolver());
final ResolveInfo info = AppGlobals.getPackageManager()
.resolveIntent(homeIntent, resolvedType, flags, userId);
final ResolveInfo info = mTaskSupervisor.resolveIntent(homeIntent, resolvedType,
userId, flags, Binder.getCallingUid());
if (info != null) {
aInfo = info.activityInfo;
}