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

Commit a11b2279 authored by Sindhu Kanathur's avatar Sindhu Kanathur Committed by Linux Build Service Account
Browse files

MSIM: Fix for getSimOperatorName() returning empty string

The property “PROPERTY_ICC_OPERATOR_ALPHA” is updated in
MSimIccCardProxy on receiving “EVENT_ICC_RECORD_EVENTS” message.
Currently, there is no code to notify this event.

Call notifyRegistrants() from SIMRecords to update the
ADB property.

Change-Id: Id32bc09b2a6216c27e98ccb649e1129b81dae39a
CRs-Fixed: 628015
(cherry picked from commit 832d0b78275ea3400d92026169403e87584a2867)
parent 166ee2a1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1566,6 +1566,7 @@ public class SIMRecords extends IccRecords {
                    if (DBG) log("Load EF_SPN: " + mSpn
                            + " spnDisplayCondition: " + mSpnDisplayCondition);
                    setSystemProperty(PROPERTY_ICC_OPERATOR_ALPHA, mSpn);
                    mRecordsEventsRegistrants.notifyResult(EVENT_SPN);

                    mSpnState = GetSpnFsmState.IDLE;
                } else {
@@ -1587,7 +1588,7 @@ public class SIMRecords extends IccRecords {

                    if (DBG) log("Load EF_SPN_CPHS: " + mSpn);
                    setSystemProperty(PROPERTY_ICC_OPERATOR_ALPHA, mSpn);

                    mRecordsEventsRegistrants.notifyResult(EVENT_SPN);
                    mSpnState = GetSpnFsmState.IDLE;
                } else {
                    mFh.loadEFTransparent(
@@ -1604,6 +1605,7 @@ public class SIMRecords extends IccRecords {

                    if (DBG) log("Load EF_SPN_SHORT_CPHS: " + mSpn);
                    setSystemProperty(PROPERTY_ICC_OPERATOR_ALPHA, mSpn);
                    mRecordsEventsRegistrants.notifyResult(EVENT_SPN);
                }else {
                    if (DBG) log("No SPN loaded in either CHPS or 3GPP");
                }