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

Commit ea93e64b authored by Yujing Gu's avatar Yujing Gu Committed by Linux Build Service Account
Browse files

Update the related ADN index when editing complete.

When editing the sim contact, the index of the new ADN is 0.
When editing completed, updating the ADN index at first,
then putting the new ADN record to the ADN cache.

Change-Id: I8045bd78714e5a3d3ea349a3a5e14a6a9e23f56b
CRs-Fixed: 1048529
parent c90dd9a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -381,6 +381,7 @@ public final class SimPhoneBookAdnRecordCache extends Handler {
                        int adnRecordIndex = mSimPbRecords.get(index - 1).getRecordNumber();
                        log("Record number for changed ADN is " + adnRecordIndex);
                        if(recordIndex == adnRecordIndex) {
                            adn.setRecordNumber(recordIndex);
                            mSimPbRecords.set(index - 1, adn);
                        } else {
                            e = new RuntimeException(