Add WIFI_LEVEL_UNREACHABLE logs

- Add WIFI_LEVEL_UNREACHABLE logs in Wi-Fi details settings

Bug: 362269742
Flag: EXEMPT add logs only
Test: Manual testing
Change-Id: I9a2b01df06417bafa85d300f1abe41797ec08143
This commit is contained in:
Weng Su
2024-08-29 17:08:25 +08:00
parent bb8199e8be
commit 1d92232b84

View File

@@ -556,6 +556,7 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
return mContext.getDrawable(getHotspotIconResource(deviceType)); return mContext.getDrawable(getHotspotIconResource(deviceType));
} }
if (mWifiEntry.getLevel() == WifiEntry.WIFI_LEVEL_UNREACHABLE) { if (mWifiEntry.getLevel() == WifiEntry.WIFI_LEVEL_UNREACHABLE) {
Log.w(TAG, "WiFi level is WIFI_LEVEL_UNREACHABLE(-1)");
return mContext.getDrawable(R.drawable.empty_icon); return mContext.getDrawable(R.drawable.empty_icon);
} }
return mIconInjector.getIcon(wifiEntry.shouldShowXLevelIcon(), wifiEntry.getLevel()); return mIconInjector.getIcon(wifiEntry.shouldShowXLevelIcon(), wifiEntry.getLevel());