From b6b832b4ee57d489ccb4e6edcdae6071751aef6c Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 17 Mar 2012 00:02:26 +0000 Subject: QualcommNoSimReadyRIL: Drop the initialstatechange check ICS doesn't have it anymore, and it actually breaks the P930's init sequence Change-Id: Ic9dfb5f2eddcda825a6d3fc5d380ebc4d56add90 --- .../internal/telephony/QualcommNoSimReadyRIL.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'telephony') diff --git a/telephony/java/com/android/internal/telephony/QualcommNoSimReadyRIL.java b/telephony/java/com/android/internal/telephony/QualcommNoSimReadyRIL.java index 0b19225..f2bf9c7 100644 --- a/telephony/java/com/android/internal/telephony/QualcommNoSimReadyRIL.java +++ b/telephony/java/com/android/internal/telephony/QualcommNoSimReadyRIL.java @@ -50,8 +50,6 @@ public class QualcommNoSimReadyRIL extends RIL implements CommandsInterface { private final int RIL_INT_RADIO_UNAVALIABLE = 1; private final int RIL_INT_RADIO_ON = 2; - protected boolean mInitialRadioStateChange = true; - public QualcommNoSimReadyRIL(Context context, int networkMode, int cdmaSubscription) { super(context, networkMode, cdmaSubscription); } @@ -641,19 +639,7 @@ public class QualcommNoSimReadyRIL extends RIL implements CommandsInterface { throw new RuntimeException("Unrecognized RIL_RadioState: " + stateCode); } - if (mInitialRadioStateChange) { - if (radioState.isOn()) { - Log.d(LOG_TAG, "Radio ON @ init; reset to OFF"); - setRadioPower(false, null); - } - else { - setRadioState (radioState); - } - mInitialRadioStateChange = false; - } - else { - setRadioState (radioState); - } + setRadioState (radioState); } class IccHandler extends Handler implements Runnable { private static final int EVENT_RADIO_ON = 1; -- cgit v1.1