From b33b70553d93c7d6b17dda0564efb0bea48bc652 Mon Sep 17 00:00:00 2001 From: sbrissen Date: Mon, 15 Dec 2014 19:01:32 -0500 Subject: smdk4412-qcom: revert "wait for sim status" This is fixed in framework Change-Id: Ib291c5e50fbe5e0b0e59e26739eaccc3366c5e34 --- .../internal/telephony/smdk4x12QComRIL.java | 27 ---------------------- 1 file changed, 27 deletions(-) diff --git a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java index a750ea4..79e8c45 100644 --- a/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java +++ b/ril/telephony/java/com/android/internal/telephony/smdk4x12QComRIL.java @@ -72,8 +72,6 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface { private boolean dialCode = needsOldRilFeature("newDialCode"); private boolean samsungEmergency = needsOldRilFeature("samsungEMSReq"); - private Message mPendingGetSimStatus; - public smdk4x12QComRIL(Context context, int preferredNetworkType, int cdmaSubscription, Integer instanceId) { this(context, preferredNetworkType, cdmaSubscription); @@ -901,29 +899,4 @@ public class smdk4x12QComRIL extends RIL implements CommandsInterface { send(rr); } - - // Hack for Lollipop - // The system now queries for SIM status before radio on, resulting - // in getting an APPSTATE_DETECTED state. The RIL does not send an - // RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED message after the SIM is - // initialized, so delay the message until the radio is on. - @Override - public void - getIccCardStatus(Message result) { - if (mState != RadioState.RADIO_ON) { - mPendingGetSimStatus = result; - } else { - super.getIccCardStatus(result); - } - } - - @Override - protected void switchToRadioState(RadioState newState) { - super.switchToRadioState(newState); - - if (newState == RadioState.RADIO_ON && mPendingGetSimStatus != null) { - super.getIccCardStatus(mPendingGetSimStatus); - mPendingGetSimStatus = null; - } - } } -- cgit v1.2.3