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

Commit 9a3b5f5d authored by Alan Wang's avatar Alan Wang Committed by Linux Build Service Account
Browse files

Telephony: Delay SIM IO until SIM_READY

When SIM_REFRESH with SIM_INIT is received we need to
reread EFs but only if and when app is ready.

Change-Id: Iae4b52839f64c61f962e7d9da1545656dc219266
parent b26ef00c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1247,6 +1247,10 @@ public class SIMRecords extends IccRecords {
                if (DBG) log("handleSimRefresh with SIM_REFRESH_INIT");
                // need to reload all files (that we care about)
                onIccRefreshInit();
                // Reregister for ready notification so that we read files
                // if app is ready
                mParentApp.unregisterForReady(this);
                mParentApp.registerForReady(this, EVENT_APP_READY, null);
                break;
            case IccRefreshResponse.REFRESH_RESULT_RESET:
                if (DBG) log("handleSimRefresh with SIM_REFRESH_RESET");