Loading src/java/com/android/internal/telephony/uicc/UiccSlot.java +6 −6 Original line number Diff line number Diff line Loading @@ -105,9 +105,9 @@ public class UiccSlot extends Handler { // 2. The latest mCardState is not ABSENT, but there is no UiccCard instance. } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT || mUiccCard == null) && mCardState != CardState.CARDSTATE_ABSENT) { // No notifications while radio is off or we just powering up if (radioState == TelephonyManager.RADIO_POWER_ON && mLastRadioState == TelephonyManager.RADIO_POWER_ON) { // No notification while we are just powering up if (radioState != TelephonyManager.RADIO_POWER_UNAVAILABLE && mLastRadioState != TelephonyManager.RADIO_POWER_UNAVAILABLE) { if (DBG) log("update: notify card added"); sendMessage(obtainMessage(EVENT_CARD_ADDED, null)); } Loading Loading @@ -183,9 +183,9 @@ public class UiccSlot extends Handler { private void updateCardStateAbsent() { int radioState = (mCi == null) ? TelephonyManager.RADIO_POWER_UNAVAILABLE : mCi.getRadioState(); // No notifications while radio is off or we just powering up if (radioState == TelephonyManager.RADIO_POWER_ON && mLastRadioState == TelephonyManager.RADIO_POWER_ON) { // No notification while we are just powering up if (radioState != TelephonyManager.RADIO_POWER_UNAVAILABLE && mLastRadioState != TelephonyManager.RADIO_POWER_UNAVAILABLE) { if (DBG) log("update: notify card removed"); sendMessage(obtainMessage(EVENT_CARD_REMOVED, null)); } Loading Loading
src/java/com/android/internal/telephony/uicc/UiccSlot.java +6 −6 Original line number Diff line number Diff line Loading @@ -105,9 +105,9 @@ public class UiccSlot extends Handler { // 2. The latest mCardState is not ABSENT, but there is no UiccCard instance. } else if ((oldState == null || oldState == CardState.CARDSTATE_ABSENT || mUiccCard == null) && mCardState != CardState.CARDSTATE_ABSENT) { // No notifications while radio is off or we just powering up if (radioState == TelephonyManager.RADIO_POWER_ON && mLastRadioState == TelephonyManager.RADIO_POWER_ON) { // No notification while we are just powering up if (radioState != TelephonyManager.RADIO_POWER_UNAVAILABLE && mLastRadioState != TelephonyManager.RADIO_POWER_UNAVAILABLE) { if (DBG) log("update: notify card added"); sendMessage(obtainMessage(EVENT_CARD_ADDED, null)); } Loading Loading @@ -183,9 +183,9 @@ public class UiccSlot extends Handler { private void updateCardStateAbsent() { int radioState = (mCi == null) ? TelephonyManager.RADIO_POWER_UNAVAILABLE : mCi.getRadioState(); // No notifications while radio is off or we just powering up if (radioState == TelephonyManager.RADIO_POWER_ON && mLastRadioState == TelephonyManager.RADIO_POWER_ON) { // No notification while we are just powering up if (radioState != TelephonyManager.RADIO_POWER_UNAVAILABLE && mLastRadioState != TelephonyManager.RADIO_POWER_UNAVAILABLE) { if (DBG) log("update: notify card removed"); sendMessage(obtainMessage(EVENT_CARD_REMOVED, null)); } Loading