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

Commit 5b5a06f5 authored by Wink Saville's avatar Wink Saville Committed by Gerrit Code Review
Browse files

Merge "Telephony: Don't start RilReceiver when not needed"

parents 44c9723a c241cad7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ public final class RIL extends BaseCommands implements CommandsInterface {
                Context.CONNECTIVITY_SERVICE);
        if (cm.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false) {
            riljLog("Not starting RILReceiver: wifi-only");
        } if (SystemProperties.getBoolean("ro.radio.noril", false)) {
            riljLog("Not starting RILReceiver: basebandless target");
        } else {
            riljLog("Starting RILReceiver");
            mReceiver = new RILReceiver();