Skip to content
Browse files

PhoneToggler: Fix toggler on LTE+GSM phones

NT_MODE_LTE_GSM_WCDMA was missing from the lists of acceptable
network modes

Change-Id: I6c3c38d63902c1c59cfa2e61ed5d8bcdd5bcb5f0
  • Loading branch information...
1 parent 724feb7 commit b4644fd0715a97836ad7205d03351af633576fab @rmcc rmcc committed with Whitehawkx Apr 27, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/com/android/phone/PhoneToggler.java
View
2 src/com/android/phone/PhoneToggler.java
@@ -52,6 +52,7 @@ public void onReceive(Context context, Intent intent) {
if (networkMode == Phone.NT_MODE_GSM_ONLY
|| networkMode == Phone.NT_MODE_GSM_UMTS
|| networkMode == Phone.NT_MODE_WCDMA_PREF
+ || networkMode == Phone.NT_MODE_LTE_GSM_WCDMA
|| networkMode == Phone.NT_MODE_WCDMA_ONLY) {
networkModeOk = true;
}
@@ -131,6 +132,7 @@ private void handleGetPreferredNetworkTypeResponse(Message msg) {
modemNetworkMode == Phone.NT_MODE_GSM_ONLY ||
modemNetworkMode == Phone.NT_MODE_WCDMA_ONLY ||
modemNetworkMode == Phone.NT_MODE_GSM_UMTS ||
+ modemNetworkMode == Phone.NT_MODE_LTE_GSM_WCDMA ||
modemNetworkMode == Phone.NT_MODE_CDMA ||
modemNetworkMode == Phone.NT_MODE_CDMA_NO_EVDO ||
modemNetworkMode == Phone.NT_MODE_EVDO_NO_CDMA ||

0 comments on commit b4644fd

Please sign in to comment.
Something went wrong with that request. Please try again.