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

Commit 04bbdb78 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

telephony: LGEStar: Try to ensure reconnect after network loss

Invoke the PDP context setup routine whenever a DATA_CALL_LIST_CHANGED
event pops up and has an active connection. (Which should happen
whenever a GPRS link is established)
This should go some way into reconfiguring the default route after
mobile network losses.

Change-Id: Ife468f3ee4fb2e66f2d1a1ab72b03888b10a2b51
parent 3e58fc81
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -474,6 +474,34 @@ public class LGEStarRIL extends RIL implements CommandsInterface {
        rr.release();
    }

    protected Object
    responseDataCallList(Parcel p) {
        int num;
        ArrayList<DataCallState> response;

        num = p.readInt();
        response = new ArrayList<DataCallState>(num);

        for (int i = 0; i < num; i++) {
            DataCallState dataCall = new DataCallState();

            dataCall.cid = p.readInt();
            dataCall.active = p.readInt();
            dataCall.type = p.readString();
            dataCall.apn = p.readString();
            String address = p.readString();
            if (address != null) {
                address = address.split(" ")[0];
            }
            dataCall.address = address;
            if (dataCall.active != 0)
                showPdpAddress(null);
            response.add(dataCall);
        }

        return response;
    }


    protected void
    processUnsolicited (Parcel p) {