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

Commit 4ffba372 authored by Naveen Kalla's avatar Naveen Kalla Committed by Gerrit Code Review
Browse files

Do not set the network mode differently for LTE+CDMA

ro.telephony.default_network can be set if needed to set a different
value for LTE+CDMA. No need to hardcode preferred network mode in the source code.

Change-Id: Iae65f72a6a3bc31d500c5ecec87368a6f2a5d117

Conflicts:

	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
parent 8b33f828
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2196,12 +2196,8 @@ public class DatabaseHelper extends SQLiteOpenHelper {

            // Set the preferred network mode to 0 = Global, CDMA default
            int type;
            if (TelephonyManager.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) {
                type = Phone.NT_MODE_GLOBAL;
            } else {
                type = SystemProperties.getInt("ro.telephony.default_network",
                        RILConstants.PREFERRED_NETWORK_MODE);
            }
            loadSetting(stmt, Settings.Global.PREFERRED_NETWORK_MODE, type);

            // --- New global settings start here