Merge "[WPA3] Hide connect button for cloned networks not in range" into qt-qpr1-dev
This commit is contained in:
@@ -741,6 +741,10 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean canConnectNetwork() {
|
private boolean canConnectNetwork() {
|
||||||
|
// Do not allow a cloned network to connect when out of range
|
||||||
|
// Otherwise it may create inconsistencies in the UI
|
||||||
|
if (mAccessPoint.isCloned() && mIsOutOfRange)
|
||||||
|
return false;
|
||||||
// Display connect button for disconnected AP even not in the range.
|
// Display connect button for disconnected AP even not in the range.
|
||||||
return !mAccessPoint.isActive();
|
return !mAccessPoint.isActive();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user