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

Commit 5713dce7 authored by SongFerng Wang's avatar SongFerng Wang Committed by Gerrit Code Review
Browse files

Merge "Remove the "set network type" when radio on"

parents 2c542468 30230f3f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2765,10 +2765,6 @@ public class GsmCdmaPhone extends Phone {
        if (!isPhoneTypeGsm()) {
            mCdmaSubscriptionSource = mCdmaSSM.getCdmaSubscriptionSource();
        }

        // If this is on APM off, SIM may already be loaded. Send setPreferredNetworkType
        // request to RIL to preserve user setting across APM toggling
        setPreferredNetworkTypeIfSimLoaded();
    }

    private void handleRadioOffOrNotAvailable() {
+0 −7
Original line number Diff line number Diff line
@@ -4367,13 +4367,6 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
        }
    }

    protected void setPreferredNetworkTypeIfSimLoaded() {
        int subId = getSubId();
        if (SubscriptionManager.isValidSubscriptionId(subId)) {
            updateAllowedNetworkTypes(null);
        }
    }

    /**
     * Registers the handler when phone radio  capability is changed.
     *