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

Commit 36728a9f authored by Lorenzo Colitti's avatar Lorenzo Colitti
Browse files

Fix javadoc for the NetworkRequest version of requestNetwork.

The documentation for this method says that the request can be
released using releaseNetworkRequest, but that's not true.
releaseNetworkRequest only takes a PendingIntent, and can only be
used to release a request filed with a PendingIntent.

Fix the docs to say that the request needs to be released using
unregisterNetworkCallback.

Change-Id: If044fd2d463ab8d09874172d5d56946251057a3c
parent 7754abb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2540,7 +2540,7 @@ public class ConnectivityManager {
     * This function behaves identically to the non-timedout version, but if a suitable
     * network is not found within the given time (in milliseconds) the
     * {@link NetworkCallback#unavailable} callback is called.  The request must
     * still be released normally by calling {@link releaseNetworkRequest}.
     * still be released normally by calling {@link unregisterNetworkCallback}.
     *
     * <p>This method requires the caller to hold either the
     * {@link android.Manifest.permission#CHANGE_NETWORK_STATE} permission