Permalink
Browse files

Settings: Enable LTE options for GSM LTE phones

Change-Id: Ie0d4896cf95a4dca68830985780c4c743e882caf
  • Loading branch information...
1 parent 7c74ecd commit b112c293101eca12c51e5277298092fa33ac79eb @rmcc rmcc committed Apr 17, 2012
@@ -2065,7 +2065,7 @@ private static boolean hasMobile4gRadio(Context context) {
Context.TELEPHONY_SERVICE);
final boolean hasWimax = conn.isNetworkSupported(TYPE_WIMAX);
- final boolean hasLte = telephony.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE;
+ final boolean hasLte = telephony.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE || telephony.getLteOnGsmMode() != 0;
return hasWimax || hasLte;
}
@@ -111,8 +111,8 @@
BUTTONS.put(BUTTON_MEDIA_NEXT, new PowerWidgetUtil.ButtonInfo(
BUTTON_MEDIA_NEXT, R.string.title_toggle_media_next,
"com.android.systemui:drawable/stat_media_next"));
- int lteOnCdmaMode = TelephonyManager.getDefault().getLteOnCdmaMode();
- if(Phone.LTE_ON_CDMA_TRUE == lteOnCdmaMode) {
+ if(Phone.LTE_ON_CDMA_TRUE == TelephonyManager.getDefault().getLteOnCdmaMode() ||
+ TelephonyManager.getDefault().getLteOnGsmMode() != 0) {
BUTTONS.put(BUTTON_LTE, new PowerWidgetUtil.ButtonInfo(
BUTTON_LTE, R.string.title_toggle_lte,
"com.android.systemui:drawable/stat_lte_on"));

0 comments on commit b112c29

Please sign in to comment.