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

Commit 1a792b26 authored by Suresh Koleti's avatar Suresh Koleti Committed by Alex Yakavenka
Browse files

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.

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

    private synchronized void onGetIccCardStatusDone(AsyncResult ar) {