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

Commit b8a0c9aa authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
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: Ia9ddfbb76e0321b9b7abc37336f45037348d9c2c
parent 854f6f73
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -2088,6 +2088,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: