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

Commit 9c591552 authored by Winson's avatar Winson
Browse files

Fix invalid size in intent resolution filterApprovedApp

Bug: 180517803

Test: manual, debug b/180511412

Change-Id: Ibf8230a7599399ab1b86c6928a4b0c5ba8abbdae
parent 197e2169
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1210,7 +1210,8 @@ public class DomainVerificationService extends SystemService

        // Filter to highest, non-zero packages
        ArraySet<String> approvedPackages = new ArraySet<>();
        for (int index = 0; index < infosSize; index++) {
        int approvalsSize = packageApprovals.size();
        for (int index = 0; index < approvalsSize; index++) {
            if (packageApprovals.valueAt(index) == highestApproval) {
                approvedPackages.add(packageApprovals.keyAt(index));
            }