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

Commit 633ccd13 authored by Chun-Wei Wang's avatar Chun-Wei Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix comparator"

parents d8c378af 527b24f1
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3468,8 +3468,9 @@ final class InstallPackageHelper {
        }
        // Sort the list to ensure we always process factory packages first
        Collections.sort(parseResults, (a, b) -> {
            ApexInfo ai = parsingApexInfo.get(a.scanFile);
            return ai.isFactory ? -1 : 1;
            ApexInfo i1 = parsingApexInfo.get(a.scanFile);
            ApexInfo i2 = parsingApexInfo.get(b.scanFile);
            return Boolean.compare(i2.isFactory, i1.isFactory);
        });