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

Commit c000b556 authored by Hai Shalom's avatar Hai Shalom Committed by android-build-merger
Browse files

Merge "[WPA3] Hide connect button for cloned networks not in range" into qt-qpr1-dev

am: fae6ecbb

Change-Id: I3095e0b07fb5cc89388e3b8f5b2ad766a82fb4bf
parents f161823c fae6ecbb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -755,6 +755,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();
    }