Merge "New null (disconnected) RSSI for wifi and mobile." into jb-dev
|
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 827 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 658 B |
|
After Width: | Height: | Size: 750 B |
|
After Width: | Height: | Size: 953 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 735 B |
|
After Width: | Height: | Size: 1001 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
@@ -282,7 +282,8 @@ public class NetworkController extends BroadcastReceiver {
|
||||
|
||||
public void refreshSignalCluster(SignalCluster cluster) {
|
||||
cluster.setWifiIndicators(
|
||||
mWifiConnected, // only show wifi in the cluster if connected
|
||||
// only show wifi in the cluster if connected or if wifi-only
|
||||
mWifiEnabled && (mWifiConnected || !mHasMobileDataFeature),
|
||||
mWifiIconId,
|
||||
mWifiActivityIconId,
|
||||
mContentDescriptionWifi);
|
||||
@@ -786,7 +787,7 @@ public class NetworkController extends BroadcastReceiver {
|
||||
if (mDataAndWifiStacked) {
|
||||
mWifiIconId = 0;
|
||||
} else {
|
||||
mWifiIconId = mWifiEnabled ? WifiIcons.WIFI_SIGNAL_STRENGTH[0][0] : 0;
|
||||
mWifiIconId = mWifiEnabled ? R.drawable.stat_sys_wifi_signal_null : 0;
|
||||
}
|
||||
mContentDescriptionWifi = mContext.getString(R.string.accessibility_no_wifi);
|
||||
}
|
||||
|
||||