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

Commit c38273ea authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "SamsungQualcomm: Skip new requests on old RILs" into cm-11.0

parents 17498f7e 232d1429
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -290,6 +290,7 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {
                if(cdmaSubscription != -1) {
                    setCdmaSubscriptionSource(mCdmaSubscription, null);
                }
                if(mRilVersion >= 8)
                    setCellInfoListRate(Integer.MAX_VALUE, null);
                notifyRegistrantsRilConnectionChanged(((int[])ret)[0]);
                break;
@@ -786,4 +787,18 @@ public class SamsungQualcommRIL extends RIL implements CommandsInterface {

        return ret;
    }

    @Override
    public void getImsRegistrationState(Message result) {
        if(mRilVersion >= 8)
            super.getImsRegistrationState(result);
        else {
            if (result != null) {
                CommandException ex = new CommandException(
                    CommandException.Error.REQUEST_NOT_SUPPORTED);
                AsyncResult.forMessage(result, null, ex);
                result.sendToTarget();
            }
        }
    }
}