summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2010-07-22 12:07:34 -0700
committerIrfan Sheriff <isheriff@google.com>2010-08-15 15:55:44 -0700
commit72d54efd3d32cb56766ef625ebc30d4c3a963222 (patch)
treed7ab14163b71595e06e5b6029a5d781113ab6271 /packages
parent876247784ee6202066abdefd8366f2e09e681fab (diff)
downloadframeworks_base-72d54efd3d32cb56766ef625ebc30d4c3a963222.zip
frameworks_base-72d54efd3d32cb56766ef625ebc30d4c3a963222.tar.gz
frameworks_base-72d54efd3d32cb56766ef625ebc30d4c3a963222.tar.bz2
DO NOT MERGE Fix wifi status icon
Doing a setIcon makes the icon visible and overrides setIconVisibility Change-Id: I7a177cc07e46f211d421e4aa86203ece5936c3fb
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
index 4f39ee4..e828f68 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarPolicy.java
@@ -1033,6 +1033,7 @@ public class StatusBarPolicy {
iconId = sWifiSignalImages[mLastWifiSignalLevel];
}
+ mService.setIcon("wifi", iconId, 0);
// Show the icon since wi-fi is connected
mService.setIconVisibility("wifi", true);
@@ -1041,11 +1042,11 @@ public class StatusBarPolicy {
mIsWifiConnected = false;
iconId = sWifiSignalImages[0];
+ mService.setIcon("wifi", iconId, 0);
// Hide the icon since we're not connected
mService.setIconVisibility("wifi", false);
}
- mService.setIcon("wifi", iconId, 0);
} else if (action.equals(WifiManager.RSSI_CHANGED_ACTION)) {
int iconId;
final int newRssi = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -200);