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

Commit 8a789307 authored by xshu's avatar xshu
Browse files

remove logic in saveConfiguration

The API is deprecated and now returns true.

Bug: 72074967
Test: compile, run ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I83ce6cc8898f7df9fc920675fa669d03fa15f36e
parent 1da5ab01
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -108,8 +108,6 @@ interface IWifiManager

    boolean isDualBandSupported();

    boolean saveConfiguration(String packageName);

    DhcpInfo getDhcpInfo();

    boolean isScanAlwaysAvailable();
+2 −6
Original line number Diff line number Diff line
@@ -1693,18 +1693,14 @@ public class WifiManager {
     * existing networks. You should assume the network IDs can be different
     * after calling this method.
     *
     * @return {@code true} if the operation succeeded
     * @return {@code false} Will always return true.
     * @deprecated There is no need to call this method -
     * {@link #addNetwork(WifiConfiguration)}, {@link #updateNetwork(WifiConfiguration)}
     * and {@link #removeNetwork(int)} already persist the configurations automatically.
     */
    @Deprecated
    public boolean saveConfiguration() {
        try {
            return mService.saveConfiguration(mContext.getOpPackageName());
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
        return true;
    }

    /**