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

Commit 8d0f9189 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by codeworkx
Browse files

telephony: Reintroduce the old ICS RadioStates

All the previous SIM/RUIM states are now equivalent to "RADIO_ON".
Tested with a fully ICS-compliant set of radio libraries, and appears
to work fully.

Change-Id: Id34320c59a316e2b6747bd3a48077b863ab772d6
parent dba8c390
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -651,7 +651,6 @@ public class RIL extends BaseCommands implements CommandsInterface {
    }

    //***** CommandsInterface implementation

    public void getVoiceRadioTechnology(Message result) {
        RILRequest rr = RILRequest.obtain(RIL_REQUEST_VOICE_RADIO_TECH, result);

@@ -2059,6 +2058,14 @@ public class RIL extends BaseCommands implements CommandsInterface {
        switch(stateInt) {
            case 0: state = RadioState.RADIO_OFF; break;
            case 1: state = RadioState.RADIO_UNAVAILABLE; break;
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10: state = RadioState.RADIO_ON; break;

            default: