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

Commit 8176de0b authored by Sreehari Vaddi's avatar Sreehari Vaddi Committed by Gerrit - the friendly Code Review server
Browse files

Add config flag for restricting net_sel_mode request.

Restrict net_sel_mode request for automatic on EVENT_RUIM_READY
based on the config flag.

Change-Id: I44907019762e2c30cd6f42ac1c8dce96e02daadd
CRs-Fixed: 754685
parent 166dae33
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -304,8 +304,12 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
            if (DBG) log("Receive EVENT_RUIM_READY");
            pollState();

            boolean skipRestoringSelection = mPhone.getContext().getResources().getBoolean(
                    com.android.internal.R.bool.skip_restoring_network_selection);
            if (!skipRestoringSelection) {
                 // Only support automatic selection mode in CDMA.
                 mPhone.setNetworkSelectionModeAutomatic(null);
            }

            mPhone.prepareEri();
            break;