Merge "Don't show the Wi-Fi icon when Wi-Fi is off" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
b3aae5aaf1
@@ -555,6 +555,9 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
|
|||||||
int deviceType = ((HotspotNetworkEntry) wifiEntry).getDeviceType();
|
int deviceType = ((HotspotNetworkEntry) wifiEntry).getDeviceType();
|
||||||
return mContext.getDrawable(getHotspotIconResource(deviceType));
|
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());
|
return mIconInjector.getIcon(wifiEntry.shouldShowXLevelIcon(), wifiEntry.getLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user