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

Commit 4957e272 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "SIM Phonebook contact export/delete issues."

parents d5651914 e88371c1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -548,6 +548,7 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {
        // email records, just to be sure.

        int len = mAdnLengthList.get(pbrIndex);
        // Parse Type1 file if Email is not present in IAP.
        // Type 1 file, the number of records is the same as the number of
        // records in the ADN file.
        if (!mEmailPresentInIap) {
@@ -597,6 +598,7 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {
        // ICC cards can be made such that they have an IAP file but all
        // records are empty. So we read both type 1 and type 2 file
        // anr records, just to be sure.
        // Parse Type1 file if ANR is not present in IAP.

        // Type 1 file, the number of records is the same as the number of
        // records in the ADN file.
@@ -777,6 +779,11 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {
                            log("getEmailRecNumber: Got empty record.Email record num is :" +
                                     (i + 1));
                            return i + 1;
                        } else if (mEmailFlags.get(pbrIndex).get(i) == 0) {
                            // This is to handle cases where the record is not used in any ADN,
                            // but has some junk values.
                            log("Unused but non empty record.Email record num is :" + (i + 1));
                            return i + 1;
                        }
                    }
                }
@@ -816,6 +823,11 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {
                        if (TextUtils.isEmpty(anrRecord)) {
                            log("getAnrRecNumber: Empty anr record. Anr record num is :" + (i + 1));
                            return i + 1;
                        } else if (mAnrFlags.get(pbrIndex).get(i) == 0) {
                            // This is to handle cases where the record is not used in any ADN,
                            // but has some junk values.
                            log("Unused but non empty record.Anr record num is :" + (i + 1));
                            return i + 1;
                        }
                    }
                }