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

Commit b31c62c8 authored by Ningyuan Wang's avatar Ningyuan Wang
Browse files

Mcc should not set country code with persistent request

A false persistent parameter ensures that wifi country code
will fall back to phone default country code upon SIM card removing.

Bug:31640617
Change-Id: Ie55fea196f314d0f8d7af8d9c68c04e14dd28987
Test: compile
parent 9223af8a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -387,8 +387,7 @@ public final class MccTable {
        String country = MccTable.countryCodeForMcc(mcc);
        Slog.d(LOG_TAG, "WIFI_COUNTRY_CODE set to " + country);
        WifiManager wM = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
        //persist
        wM.setCountryCode(country, true);
        wM.setCountryCode(country, false);
    }

    static {