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

Commit 678bc879 authored by Ravindra's avatar Ravindra Committed by Steve Kondik
Browse files

SIM Phone Book : Modify update operation

Add empty number check during update operation to comply
with the 3GPP 51.101 sections
10.5.1 EFADN (Abbreviated dialling numbers) and
10.5.2 EFFDN (Fixed dialling numbers)

Change-Id: I22584704ac961ea0bd7648cd6e9fa5ae33f655ee
CRs-Fixed: 539346
parent 817c9e12
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -373,6 +373,11 @@ public class IccProvider extends ContentProvider {
        String[] emails = null;
        String newTag = values.getAsString("newTag");
        String newNumber = values.getAsString("newNumber");
        /*As part of 3GPP 51.011, number field is mandatory while storing in the
          SIM for both ADN and FDN */
        if (TextUtils.isEmpty(number)) {
            return 0;
        }
        String[] newEmails = null;
        // TODO(): Update for email.
        boolean success = updateIccRecordInEf(efType, tag, number,