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

Commit b6b832b4 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

QualcommNoSimReadyRIL: Drop the initialstatechange check

ICS doesn't have it anymore, and it actually breaks the P930's init
sequence

Change-Id: Ic9dfb5f2eddcda825a6d3fc5d380ebc4d56add90
parent aa1b2d03
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -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,20 +639,8 @@ 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);
    }
    }
    class IccHandler extends Handler implements Runnable {
        private static final int EVENT_RADIO_ON = 1;
        private static final int EVENT_ICC_STATUS_CHANGED = 2;