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

Commit 3975aace authored by Quang Luong's avatar Quang Luong Committed by Android (Google) Code Review
Browse files

Merge "Handled exeption in forget() for removePasspointConfiguration()"

parents fd7e2b43 9feca638
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1116,7 +1116,12 @@ public class WifiSettings extends RestrictedSettingsFragment
                return;
            }
        } else if (mSelectedAccessPoint.getConfig().isPasspoint()) {
            try {
                mWifiManager.removePasspointConfiguration(mSelectedAccessPoint.getConfig().FQDN);
            } catch (IllegalArgumentException e) {
                Log.e(TAG, "Failed to remove Passpoint configuration with error: " + e);
                return;
            }
        } else {
            mWifiManager.forget(mSelectedAccessPoint.getConfig().networkId, mForgetListener);
        }