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

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

telephony: Remove persist argument for setting wifi country code

Bug: 29353903
Test: compile, unit tests
Change-Id: Ib281c5edb162789ba9fb558e56e9e24e7156622a
parent 54c4ad76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,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);
        wM.setCountryCode(country, false);
        wM.setCountryCode(country);
    }

    static {
+1 −1
Original line number Diff line number Diff line
@@ -525,7 +525,7 @@ public abstract class Phone extends Handler implements PhoneInternalInterface {
                // note this is not persisting
                WifiManager wM = (WifiManager)
                        mContext.getSystemService(Context.WIFI_SERVICE);
                wM.setCountryCode(country, false);
                wM.setCountryCode(country);
            }
        }