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

Commit e4036947 authored by Nicolas Prevot's avatar Nicolas Prevot Committed by Android Git Automerger
Browse files

am b298ba48: am dbdf7c45: Don\'t send app links to the parent if status = never (part 2)

* commit 'b298ba48':
  Don't send app links to the parent if status = never (part 2)
parents 1bc7df4f b298ba48
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4417,9 +4417,7 @@ public class PackageManagerService extends IPackageManager.Stub {
            synchronized(mPackages) {
                CrossProfileDomainInfo xpDomainInfo = getCrossProfileDomainPreferredLpr(
                        intent, resolvedType, 0, sourceUserId, parent.id);
                return xpDomainInfo != null
                        && xpDomainInfo.bestDomainVerificationStatus !=
                                INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER;
                return xpDomainInfo != null;
            }
        }
        return false;
@@ -4576,6 +4574,11 @@ public class PackageManagerService extends IPackageManager.Stub {
                        result.bestDomainVerificationStatus);
            }
        }
        // Don't consider matches with status NEVER across profiles.
        if (result != null && result.bestDomainVerificationStatus
                == INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) {
            return null;
        }
        return result;
    }