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

Commit 74f7be63 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by android-build-merger
Browse files

Merge "Don't auto-connect to networks that have no/limited connectivity." into qt-dev

am: a85d8ba0

Change-Id: Ia8c3102d583e3a07b656cf60609cf1c2dddfcdbe
parents 19a91def a85d8ba0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3649,6 +3649,13 @@ public class ConnectivityService extends IConnectivityManager.Stub
                || nai.networkMisc.acceptPartialConnectivity) {
            return;
        }

        // Stop automatically reconnecting to this network in the future. Automatically connecting
        // to a network that provides no or limited connectivity is not useful, because the user
        // cannot use that network except through the notification shown by this method, and the
        // notification is only shown if the network is explicitly selected by the user.
        nai.asyncChannel.sendMessage(NetworkAgent.CMD_PREVENT_AUTOMATIC_RECONNECT);

        // TODO: Evaluate if it's needed to wait 8 seconds for triggering notification when
        // NetworkMonitor detects the network is partial connectivity. Need to change the design to
        // popup the notification immediately when the network is partial connectivity.