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

Commit cd35dc0b authored by Ethan Chen's avatar Ethan Chen
Browse files

Revert "Use radio availability to sync card status instead of radio on"

This reverts commit af1cd8cb.

Change-Id: Iae4063337d13eabc979acd172133d7744a270647
parent d43a3ad9
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -125,7 +125,12 @@ public class UiccController extends Handler {
        for (int i = 0; i < mCis.length; i++) {
            Integer index = new Integer(i);
            mCis[i].registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, index);
            // TODO remove this once modem correctly notifies the unsols
            if (DECRYPT_STATE.equals(SystemProperties.get("vold.decrypt"))) {
                mCis[i].registerForAvailable(this, EVENT_ICC_STATUS_CHANGED, index);
            } else {
                mCis[i].registerForOn(this, EVENT_ICC_STATUS_CHANGED, index);
            }
            mCis[i].registerForNotAvailable(this, EVENT_RADIO_UNAVAILABLE, index);
            mCis[i].registerForIccRefresh(this, EVENT_SIM_REFRESH, index);
        }