summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMadan Ankapura <mankapur@sta.samsung.com>2012-08-02 19:10:22 -0700
committerMadan Ankapura <mankapur@sta.samsung.com>2012-08-02 19:10:22 -0700
commit68cad3a0faf0cad9cba81a13e2cde75ca6ae528e (patch)
treeabef61cc6b52f4e72840c5b45a490d3e151dc4c0
parentd2237dfe7d84c36e5cc9399a444f9befb559af97 (diff)
downloadframeworks_base-68cad3a0faf0cad9cba81a13e2cde75ca6ae528e.zip
frameworks_base-68cad3a0faf0cad9cba81a13e2cde75ca6ae528e.tar.gz
frameworks_base-68cad3a0faf0cad9cba81a13e2cde75ca6ae528e.tar.bz2
show 3G icon for CDMA/1xRTT
when config_showMin3G is enabled to true in a CDMA device Change-Id: I79a4fa200dc406fc7f9f4527165046541961ef69 Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java30
1 files changed, 19 insertions, 11 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
index 4d22f33..751764c 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
@@ -568,18 +568,26 @@ public class NetworkController extends BroadcastReceiver {
}
break;
case TelephonyManager.NETWORK_TYPE_CDMA:
- // display 1xRTT for IS95A/B
- mDataIconList = TelephonyIcons.DATA_1X[mInetCondition];
- mDataTypeIconId = R.drawable.stat_sys_data_connected_1x;
- mContentDescriptionDataType = mContext.getString(
- R.string.accessibility_data_connection_cdma);
- break;
+ if (!mShowAtLeastThreeGees) {
+ // display 1xRTT for IS95A/B
+ mDataIconList = TelephonyIcons.DATA_1X[mInetCondition];
+ mDataTypeIconId = R.drawable.stat_sys_data_connected_1x;
+ mContentDescriptionDataType = mContext.getString(
+ R.string.accessibility_data_connection_cdma);
+ break;
+ } else {
+ // fall through
+ }
case TelephonyManager.NETWORK_TYPE_1xRTT:
- mDataIconList = TelephonyIcons.DATA_1X[mInetCondition];
- mDataTypeIconId = R.drawable.stat_sys_data_connected_1x;
- mContentDescriptionDataType = mContext.getString(
- R.string.accessibility_data_connection_cdma);
- break;
+ if (!mShowAtLeastThreeGees) {
+ mDataIconList = TelephonyIcons.DATA_1X[mInetCondition];
+ mDataTypeIconId = R.drawable.stat_sys_data_connected_1x;
+ mContentDescriptionDataType = mContext.getString(
+ R.string.accessibility_data_connection_cdma);
+ break;
+ } else {
+ // fall through
+ }
case TelephonyManager.NETWORK_TYPE_EVDO_0: //fall through
case TelephonyManager.NETWORK_TYPE_EVDO_A:
case TelephonyManager.NETWORK_TYPE_EVDO_B: