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

Commit 9af00cb2 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Change the doc for disableEphemeralNetwork." into rvc-dev am:...

Merge "Change the doc for disableEphemeralNetwork." into rvc-dev am: 3045fafd am: 4c424a8f am: e1a18acd

Change-Id: Iaff2d9e1f49150ecdfbcd70a805e36cef8e0f3ed
parents 8ab1c637 e1a18acd
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -4441,10 +4441,11 @@ public class WifiManager {
    }

    /**
     * Disable an ephemeral network.
     *
     * @param ssid in the format of WifiConfiguration's SSID.
     * Temporarily disable a network. Should always trigger with user disconnect network.
     *
     * @param network Input can be SSID or FQDN. And caller must ensure that the SSID passed thru
     *                this API matched the WifiConfiguration.SSID rules, and thus be surrounded by
     *                quotes.
     * @hide
     */
    @SystemApi
@@ -4452,12 +4453,12 @@ public class WifiManager {
            android.Manifest.permission.NETWORK_SETTINGS,
            android.Manifest.permission.NETWORK_STACK
    })
    public void disableEphemeralNetwork(@NonNull String ssid) {
        if (TextUtils.isEmpty(ssid)) {
    public void disableEphemeralNetwork(@NonNull String network) {
        if (TextUtils.isEmpty(network)) {
            throw new IllegalArgumentException("SSID cannot be null or empty!");
        }
        try {
            mService.disableEphemeralNetwork(ssid, mContext.getOpPackageName());
            mService.disableEphemeralNetwork(network, mContext.getOpPackageName());
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }