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

Commit 2d838589 authored by Kevin Hufnagle's avatar Kevin Hufnagle Committed by android-build-merger
Browse files

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

am: 82293fb0

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