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

Commit 4b114575 authored by Esteban Talavera's avatar Esteban Talavera Committed by Android Git Automerger
Browse files

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

* commit '22921603':
  Don't send app links to parent profile if status == never
parents f028ba3d 22921603
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;