Snap for 6016135 from fae6ecbbae to qt-qpr2-release

Change-Id: Ie0a17a818fc819840e3996a105db373021b32004
This commit is contained in:
android-build-team Robot
2019-11-19 02:09:08 +00:00

View File

@@ -741,6 +741,10 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
}
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.
return !mAccessPoint.isActive();
}