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

Commit ed904949 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6016135 from fae6ecbb to qt-qpr2-release

Change-Id: Ie0a17a818fc819840e3996a105db373021b32004
parents 0b23c9c0 fae6ecbb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
    }