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

Commit b166bc81 authored by Wink Saville's avatar Wink Saville
Browse files

Set mGotCountryCode properly.

mGotCountryCode needs to be set to false when we don't know
the country code and to true only when we do.

Bug: 2578334
Change-Id: I7cb21e627ae115880df5f9b2095cb4ba094ab751
parent 11a67053
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -390,6 +390,7 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {

            if (operatorNumeric == null) {
                phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
                mGotCountryCode = false;
            } else {
                String isoCountryCode = "";
                try {
+1 −0
Original line number Diff line number Diff line
@@ -964,6 +964,7 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {

            if (operatorNumeric == null) {
                phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
                mGotCountryCode = false;
            } else {
                String isoCountryCode = "";
                try{
+1 −0
Original line number Diff line number Diff line
@@ -846,6 +846,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker {

            if (operatorNumeric == null) {
                phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
                mGotCountryCode = false;
            } else {
                String iso = "";
                try{