Merge "[MEP] sort the simSlotMapping by logcal slot id" into tm-dev am: faa0eddcc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17159743 Change-Id: Iff7f806c02ad6a4413f9a98eb7db93691debe0c3
This commit is contained in:
@@ -369,6 +369,7 @@ public class UiccSlotUtil {
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.sorted(Comparator.comparingInt(UiccSlotMapping::getLogicalSlotIndex))
|
||||
.mapToInt(uiccSlotMapping -> uiccSlotMapping.getLogicalSlotIndex())
|
||||
.findFirst()
|
||||
.orElse(INVALID_LOGICAL_SLOT_ID);
|
||||
|
||||
Reference in New Issue
Block a user