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

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

QualcommNoSimReadyRIL: Support radio state in new generation rils

The radio-state enums in CAF's ICS have changed from GB, radio_on is
now 10

Change-Id: I81f84a551bec0537925c4b34aa158b7c7a037f59
parent 7dd34b86
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ public class QualcommNoSimReadyRIL extends RIL implements CommandsInterface {
    private final int RIL_INT_RADIO_OFF = 0;
    private final int RIL_INT_RADIO_UNAVALIABLE = 1;
    private final int RIL_INT_RADIO_ON = 2;
    private final int RIL_INT_RADIO_ON_NG = 10;

    public QualcommNoSimReadyRIL(Context context, int networkMode, int cdmaSubscription) {
        super(context, networkMode, cdmaSubscription);
@@ -622,6 +623,7 @@ public class QualcommNoSimReadyRIL extends RIL implements CommandsInterface {
                radioState = CommandsInterface.RadioState.RADIO_UNAVAILABLE;
                break;
            case RIL_INT_RADIO_ON:
            case RIL_INT_RADIO_ON_NG:
                if (mIccHandler == null) {
                    handlerThread = new HandlerThread("IccHandler");
                    mIccThread = handlerThread;