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

Commit 8c0731cb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "remove logic in saveConfiguration"

parents 38e839a2 8a789307
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;
    }

    /**