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

Commit 320bc8ff authored by Winson's avatar Winson
Browse files

Only add parent profile resolution if strictly greater

Don't show the intent dialog if the personal profile has an app that is
the same level of verification, instead just immediate open the work
profile app.

Bug: 188545047

Test: manual, tested as part of ongoing CTS development

Change-Id: Ifaac12dc5582a0ee488a964b3d48216d98cd43d9
parent bd62d13f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2681,9 +2681,9 @@ public class PackageManagerService extends IPackageManager.Stub
                } else {
                    result.addAll(approvedInfos);
                    // If the other profile has an app that's of equal or higher approval, add it
                    // If the other profile has an app that's higher approval, add it
                    if (xpDomainInfo != null
                            && xpDomainInfo.highestApprovalLevel >= highestApproval) {
                            && xpDomainInfo.highestApprovalLevel > highestApproval) {
                        result.add(xpDomainInfo.resolveInfo);
                    }
                }