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

Commit facd4fc3 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Change to not send error response twice." am: 10a430b5 am: f3983ed4

am: e4257b59

Change-Id: I312632bd84e3219e91c3baed9159be794f261096
parents 31b75658 e4257b59
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -439,6 +439,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                        // todo: rild should be back up since message was sent with a delay. this is
                        // a hack.
                        getRadioProxy(null);
                        getOemHookProxy(null);
                    }
                    break;
            }
@@ -676,7 +677,7 @@ public final class RIL extends BaseCommands implements CommandsInterface {

    private IRadio getRadioProxy(Message result) {
        if (!mIsMobileNetworkSupported) {
            if (RILJ_LOGV) riljLog("Not calling getService(): wifi-only");
            if (RILJ_LOGV) riljLog("getRadioProxy: Not calling getService(): wifi-only");
            return null;
        }

@@ -712,6 +713,11 @@ public final class RIL extends BaseCommands implements CommandsInterface {
    }

    private IOemHook getOemHookProxy(Message result) {
        if (!mIsMobileNetworkSupported) {
            if (RILJ_LOGV) riljLog("getOemHookProxy: Not calling getService(): wifi-only");
            return null;
        }

        if (mOemHookProxy != null) {
            return mOemHookProxy;
        }
@@ -832,10 +838,6 @@ public final class RIL extends BaseCommands implements CommandsInterface {

    private void handleRadioProxyExceptionForRR(RILRequest rr, String caller, Exception e) {
        riljLoge(caller, e);
        rr.onError(RADIO_NOT_AVAILABLE, null);
        decrementWakeLock(rr);
        rr.release();

        resetProxyAndRequestList();
    }