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

Commit 0421294d authored by Suresh Koleti's avatar Suresh Koleti Committed by Linux Build Service Account
Browse files

Telephony: Query GET_SIM_STATUS when radio state is OFF

Boot up target in airplane mode with SIM, not showing any
card status on lock screen because telephony will query
GET_SIM_STATUS only if radio is ON.

Query GET_SIM_STATUS if radio is OFF to show the card
status on lock screen even in airplane mode.
CRs-fixed: 446940

Change-Id: I283cc3d5ea7a0200d26282d316dad1e7c0771b71
parent e8a4b649
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -192,8 +192,8 @@ public class UiccController extends Handler {
        mContext = c;
        mContext = c;
        mCi = ci;
        mCi = ci;
        mCi.registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, null);
        mCi.registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, null);
        // TODO remove this once modem correctly notifies the unsols
        // This is needed so that we query for sim status in the case when we boot in APM
        mCi.registerForOn(this, EVENT_ICC_STATUS_CHANGED, null);
        mCi.registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, null);
    }
    }


    private synchronized void onGetIccCardStatusDone(AsyncResult ar) {
    private synchronized void onGetIccCardStatusDone(AsyncResult ar) {