Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b161c23 authored by Weng Su's avatar Weng Su
Browse files

Don't show the Wi-Fi icon when Wi-Fi is off

- Show an empty icon when the Wi-Fi level is unreachable

Bug: 339343274
Flag: EXEMPT bugfix
Test: Manual testing
atest -c SettingsRoboTests

Change-Id: I55f3be145150235b19484e256c35e37f885a1dcf
parent 7b46a822
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -555,6 +555,9 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
            int deviceType = ((HotspotNetworkEntry) wifiEntry).getDeviceType();
            return mContext.getDrawable(getHotspotIconResource(deviceType));
        }
        if (mWifiEntry.getLevel() == WifiEntry.WIFI_LEVEL_UNREACHABLE) {
            return mContext.getDrawable(R.drawable.empty_icon);
        }
        return mIconInjector.getIcon(wifiEntry.shouldShowXLevelIcon(), wifiEntry.getLevel());
    }