Fix Tx link speed still showing after disconnecting from wifi network
Make sure the tx link speed preference in the Network Details page disappears when the network is disconnected. Bug: 151126855 Test: manually going to network details page and disconnecting and verifying that the link speed disappears. Change-Id: I3dfd66085db987535c201d38961e4bca709752c9
This commit is contained in:
@@ -596,7 +596,8 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void refreshTxSpeed() {
|
private void refreshTxSpeed() {
|
||||||
if (mWifiInfo == null) {
|
if (mWifiInfo == null
|
||||||
|
|| mWifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED) {
|
||||||
mTxLinkSpeedPref.setVisible(false);
|
mTxLinkSpeedPref.setVisible(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -608,7 +609,8 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void refreshRxSpeed() {
|
private void refreshRxSpeed() {
|
||||||
if (mWifiInfo == null) {
|
if (mWifiInfo == null
|
||||||
|
|| mWifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED) {
|
||||||
mRxLinkSpeedPref.setVisible(false);
|
mRxLinkSpeedPref.setVisible(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user