Skip to content

Commit a81fe3b

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Only show wifi indicator when wifi is connected."
2 parents 07800a5 + 7b2013d commit a81fe3b

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)