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

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

RIL: Sink RIL_REQUEST_GET_DATA_CALL_PROFILE for version < 10

Old RILs won't have this L request, and the ID may conflict with
something in the vendor library.

Change-Id: I7ae80736526043633fc3ae076c4d37e0ad84eda1
parent caa57d47
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -775,6 +775,16 @@ public class RIL extends BaseCommands implements CommandsInterface {

    public void
    getDataCallProfile(int appType, Message result) {
        if(mRilVersion < 10) {
            if (result != null) {
                CommandException ex = new CommandException(
                    CommandException.Error.REQUEST_NOT_SUPPORTED);
                AsyncResult.forMessage(result, null, ex);
                result.sendToTarget();
            }
            return;
        }

        RILRequest rr = RILRequest.obtain(
                RILConstants.RIL_REQUEST_GET_DATA_CALL_PROFILE, result);