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

Commit 16f777da authored by Max Popov's avatar Max Popov Committed by Abhisek Devkota
Browse files

Wifi Country code

Change-Id: Ic57d5f86e63e0fadd69d98c282a1e81360d5c6ae
parent 65ff49a8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -227,6 +227,8 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment

        if (KEY_COUNTRY_CODE.equals(key)) {
            try {
                Settings.Global.putString(getContentResolver(), Settings.Global.WIFI_COUNTRY_CODE,
                        (String) newValue);
                mWifiManager.setCountryCode((String) newValue, true);
            } catch (IllegalArgumentException e) {
                Toast.makeText(getActivity(), R.string.wifi_setting_countrycode_error,