Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c33db384 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[WPA3] Hide connect button for cloned networks not in range"

parents eb4b142e 63fc60f5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -781,6 +781,11 @@ 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();
    }