Only show wifi indicator when wifi is connected.

Bug: 5182789
Change-Id: I06e9592f9c51affd3b05b163f7a4f7b0c144403f
This commit is contained in:
Daniel Sandler
2011-08-24 12:20:55 -07:00
parent cfc0f2c206
commit 7b2013d94c

View File

@@ -225,7 +225,7 @@ public class NetworkController extends BroadcastReceiver {
public void addSignalCluster(SignalCluster cluster) {
mSignalClusters.add(cluster);
cluster.setWifiIndicators(
mWifiEnabled,
mWifiConnected, // only show wifi in the cluster if connected
mWifiIconId,
mWifiActivityIconId);
cluster.setMobileDataIndicators(
@@ -862,7 +862,7 @@ public class NetworkController extends BroadcastReceiver {
// NB: the mLast*s will be updated later
for (SignalCluster cluster : mSignalClusters) {
cluster.setWifiIndicators(
mWifiEnabled,
mWifiConnected, // only show wifi in the cluster if connected
mWifiIconId,
mWifiActivityIconId);
cluster.setMobileDataIndicators(