summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2010-09-13 15:53:26 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2010-09-13 15:53:26 -0700
commitfa974c590955e9ff21f8f85209d9b28b0f467458 (patch)
treee40c1335d0f916d3a031b635dd7eccc14d8bf443 /packages
parentcc5494c9996f809e36539b24e8b6b67683383d29 (diff)
downloadframeworks_base-fa974c590955e9ff21f8f85209d9b28b0f467458.zip
frameworks_base-fa974c590955e9ff21f8f85209d9b28b0f467458.tar.gz
frameworks_base-fa974c590955e9ff21f8f85209d9b28b0f467458.tar.bz2
Fix statusbar display of wifi signalstrength
When turning a 1d array into a 2d, be sure and adjust length-checks. bug:2995809 Change-Id: I9ff53f75958ea7808eb9f44bc05497e86f1807a2
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
index b4e0d3a..5dedcc9 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
@@ -718,7 +718,6 @@ public class StatusBarPolicy {
iconId = sWifiSignalImages[mLastWifiInetConnectivityState]
[mLastWifiSignalLevel];
}
-
mService.setIcon("wifi", iconId, 0);
// Show the icon since wi-fi is connected
mService.setIconVisibility("wifi", true);
@@ -1101,7 +1100,7 @@ public class StatusBarPolicy {
int iconId;
final int newRssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200);
int newSignalLevel = WifiManager.calculateSignalLevel(newRssi,
- sWifiSignalImages.length);
+ sWifiSignalImages[0].length);
if (newSignalLevel != mLastWifiSignalLevel) {
mLastWifiSignalLevel = newSignalLevel;
if (mIsWifiConnected) {