Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support NT_MODE_LTE_CDMA_EVDO for Lte Toggle (2/2)

Change-Id: Ie8e2d7be8e9cb1ed8be478f69f01d6d9cf13578c
  • Loading branch information...
commit 75ce1d313144d6d99dedf7905676522f51b83eda 1 parent 6db18f1
@xoomdev xoomdev authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 src/com/android/phone/PhoneInterfaceManager.java
View
18 src/com/android/phone/PhoneInterfaceManager.java
@@ -28,6 +28,7 @@
import android.os.Looper;
import android.os.Message;
import android.os.ServiceManager;
+import android.os.SystemProperties;
import android.provider.Settings;
import android.telephony.NeighboringCellInfo;
import android.telephony.CellInfo;
@@ -285,11 +286,22 @@ public void call(String number) {
public void toggleLTE(boolean on) {
int network = -1;
- if (on) {
- network = Phone.NT_MODE_GLOBAL;
+ boolean usesQcLte = SystemProperties.getBoolean(
+ "ro.config.qc_lte_network_modes", false);
+ if (usesQcLte) {
+ if (on) {
+ network = Phone.NT_MODE_LTE_CDMA_EVDO;
+ } else {
+ network = Phone.NT_MODE_CDMA;
+ }
} else {
- network = Phone.NT_MODE_CDMA;
+ if (on) {
+ network = Phone.NT_MODE_GLOBAL;
+ } else {
+ network = Phone.NT_MODE_CDMA;
+ }
}
+
mPhone.setPreferredNetworkType(network,
mMainThreadHandler.obtainMessage(CMD_TOGGLE_LTE));
Settings.Secure.putInt(mApp.getContentResolver(),
Please sign in to comment.
Something went wrong with that request. Please try again.