Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22921603 authored by Esteban Talavera's avatar Esteban Talavera Committed by Android (Google) Code Review
Browse files

Merge "Don't send app links to parent profile if status == never" into mnc-dev

parents 96d00ab3 3ec12db0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4431,8 +4431,11 @@ public class PackageManagerService extends IPackageManager.Stub {
            // cross-profile app linking works only towards the parent.
            final UserInfo parent = getProfileParent(sourceUserId);
            synchronized(mPackages) {
                return getCrossProfileDomainPreferredLpr(intent, resolvedType, 0, sourceUserId,
                        parent.id) != null;
                CrossProfileDomainInfo xpDomainInfo = getCrossProfileDomainPreferredLpr(
                        intent, resolvedType, 0, sourceUserId, parent.id);
                return xpDomainInfo != null
                        && xpDomainInfo.bestDomainVerificationStatus !=
                                INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER;
            }
        }
        return false;