summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorKazuhiro Ondo <kazuhiro.ondo@motorola.com>2012-01-27 08:57:26 -0600
committerWink Saville <wink@google.com>2012-01-30 13:42:21 -0800
commitbc92613cf79a28d46e47386a202f9f851c237263 (patch)
treec5eb131203703282996e1bd4dfc235c1a8055bb0 /packages
parent4d6da8649afc43022a156bffca6cd2c9127cefe1 (diff)
downloadframeworks_base-bc92613cf79a28d46e47386a202f9f851c237263.zip
frameworks_base-bc92613cf79a28d46e47386a202f9f851c237263.tar.gz
frameworks_base-bc92613cf79a28d46e47386a202f9f851c237263.tar.bz2
Display roaming indicator icon only based on ERI in CDMA case.
Fixing CV failure. In some scenario where ERI table expects "Roaming Indicator OFF", R icon was still displayed on the status bar. This patch is to update the logic so that only ERI table is used to display R icon in case of CDMA. Bug:5932154 Change-Id: I125087cc8d700b102e05c3050d88a70485c9a86e
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java17
1 files changed, 12 insertions, 5 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 d0f72a4..d787e10 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java
@@ -588,8 +588,12 @@ public class NetworkController extends BroadcastReceiver {
}
}
- if ((isCdma() && isCdmaEri()) || mPhone.isNetworkRoaming()) {
- mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
+ if (isCdma()) {
+ if (isCdmaEri()) {
+ mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
+ }
+ } else if (mPhone.isNetworkRoaming()) {
+ mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
}
}
@@ -1019,10 +1023,13 @@ public class NetworkController extends BroadcastReceiver {
mContentDescriptionCombinedSignal = mHasMobileDataFeature
? mContentDescriptionDataType : mContentDescriptionWifi;
- if ((isCdma() && isCdmaEri()) || mPhone.isNetworkRoaming()) {
+ mDataTypeIconId = 0;
+ if (isCdma()) {
+ if (isCdmaEri()) {
+ mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
+ }
+ } else if (mPhone.isNetworkRoaming()) {
mDataTypeIconId = R.drawable.stat_sys_data_connected_roam;
- } else {
- mDataTypeIconId = 0;
}
}