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

Commit c4ec49b7 authored by Paul Stewart's avatar Paul Stewart Committed by android-build-merger
Browse files

Document correct context for obtaining WifiManager am: 0e164b19 am: b09557b3

am: 163a1352

Change-Id: I943a2d60461633b9432bdf83c3b25086bba22b94
parents 155374e8 163a1352
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2782,8 +2782,10 @@ public abstract class Context {
     *  <dd> A {@link android.net.ConnectivityManager ConnectivityManager} for
     *  handling management of network connections.
     *  <dt> {@link #WIFI_SERVICE} ("wifi")
     *  <dd> A {@link android.net.wifi.WifiManager WifiManager} for management of
     * Wi-Fi connectivity.
     *  <dd> A {@link android.net.wifi.WifiManager WifiManager} for management of Wi-Fi
     *  connectivity.  On releases before NYC, it should only be obtained from an application
     *  context, and not from any other derived context to avoid memory leaks within the calling
     *  process.
     *  <dt> {@link #WIFI_P2P_SERVICE} ("wifip2p")
     *  <dd> A {@link android.net.wifi.p2p.WifiP2pManager WifiP2pManager} for management of
     * Wi-Fi Direct connectivity.
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,8 @@ import java.util.concurrent.CountDownLatch;
 * This class provides the primary API for managing all aspects of Wi-Fi
 * connectivity. Get an instance of this class by calling
 * {@link android.content.Context#getSystemService(String) Context.getSystemService(Context.WIFI_SERVICE)}.
 * On releases before NYC, it should only be obtained from an application context, and not from
 * any other derived context to avoid memory leaks within the calling process.

 * It deals with several categories of items:
 * <ul>