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

Commit 4d215ad4 authored by Kevin Hufnagle's avatar Kevin Hufnagle
Browse files

docs: Wi-Fi settings example now uses Settings constant correctly

The constant ACTION_WIFI_SETTINGS is part of the Settings class, not
the Intent class. An example intent for opening settings has been
changed to reflect this class structure.

Bug: 17464977
Change-Id: I160354a11392ad001c127525983a1b84a4dfbe00
parent 36f4638f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2155,7 +2155,7 @@ that are available.</p>
<p><b>Example intent:</b></p>
<pre>
public void openWifiSettings() {
    Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
    Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
    if (intent.resolveActivity(getPackageManager()) != null) {
        startActivity(intent);
    }