diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2010-09-13 15:53:26 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2010-09-13 15:53:26 -0700 |
commit | fa974c590955e9ff21f8f85209d9b28b0f467458 (patch) | |
tree | e40c1335d0f916d3a031b635dd7eccc14d8bf443 /packages/SystemUI | |
parent | cc5494c9996f809e36539b24e8b6b67683383d29 (diff) | |
download | frameworks_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/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java | 3 |
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) { |