Merge "Fix comparator"
This commit is contained in:
committed by
Android (Google) Code Review
commit
633ccd13a7
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user