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

Commit 715d5cad authored by Nate(Qiang) Jiang's avatar Nate(Qiang) Jiang
Browse files

Change the doc for disableEphemeralNetwork.

Expend the usage of this API to all network type.

Bug: 136005248
Test: build

Change-Id: I54853431aad9ccb7db18eea39a2a1df830814d4f
parent 27f83cdb
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -4430,10 +4430,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
@@ -4441,12 +4442,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();
        }