OSDN Git Service

Revert submission
authorHai Shalom <haishalom@google.com>
Thu, 21 Nov 2019 19:23:09 +0000 (19:23 +0000)
committerHai Shalom <haishalom@google.com>
Thu, 21 Nov 2019 23:09:22 +0000 (23:09 +0000)
Reason for revert: Incomplete fix that causes additional issues which were not anticipated earlier.

Change-Id: I65868205cc8241f8179006256e6e13698ad79d64
Merged-In: I5f3a6e31dc96fbc016e6ab5f56c3c68eb9e7723f

src/com/android/settings/wifi/details/WifiDetailPreferenceController.java

index e8fc8bb..a915766 100644 (file)
@@ -741,10 +741,6 @@ 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();
     }