Skip to content

Commit 7b2013d

Browse files
committed
Only show wifi indicator when wifi is connected.
Bug: 5182789 Change-Id: I06e9592f9c51affd3b05b163f7a4f7b0c144403f
1 parent cfc0f2c commit 7b2013d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public void addLabelView(TextView v) {
225225
public void addSignalCluster(SignalCluster cluster) {
226226
mSignalClusters.add(cluster);
227227
cluster.setWifiIndicators(
228-
mWifiEnabled,
228+
mWifiConnected, // only show wifi in the cluster if connected
229229
mWifiIconId,
230230
mWifiActivityIconId);
231231
cluster.setMobileDataIndicators(
@@ -862,7 +862,7 @@ else if (!mDataConnected && !mWifiConnected && !mBluetoothTethered) {
862862
// NB: the mLast*s will be updated later
863863
for (SignalCluster cluster : mSignalClusters) {
864864
cluster.setWifiIndicators(
865-
mWifiEnabled,
865+
mWifiConnected, // only show wifi in the cluster if connected
866866
mWifiIconId,
867867
mWifiActivityIconId);
868868
cluster.setMobileDataIndicators(

0 commit comments

Comments
 (0)