Include current profile browsers when resolving cross profile
The resolution logic relies on these being added in order to redirect to ResolverActivity. Then it can use the presence of browsers/absence of apps to determine when to show the new UI. Bug: 174688153 Test: manual, launch work profile intent for personal profile app Change-Id: I60fdb0506d9b1d8068e4f7592b3f5cf5907d92ad
This commit is contained in:
@@ -2654,13 +2654,10 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
|
||||
// If no apps are approved for the domain, resolve only to browsers
|
||||
if (approvedInfos.isEmpty()) {
|
||||
// If the other profile has a result, include that and delegate to
|
||||
// ResolveActivity
|
||||
includeBrowser = true;
|
||||
if (xpDomainInfo != null && xpDomainInfo.highestApprovalLevel
|
||||
> DomainVerificationManagerInternal.APPROVAL_LEVEL_NONE) {
|
||||
result.add(xpDomainInfo.resolveInfo);
|
||||
} else {
|
||||
includeBrowser = true;
|
||||
}
|
||||
} else {
|
||||
result.addAll(approvedInfos);
|
||||
|
||||
Reference in New Issue
Block a user