Skip to content

Commit b166bc8

Browse files
author
Wink Saville
committed
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
1 parent 11a6705 commit b166bc8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ protected void pollStateDone() {
390390

391391
if (operatorNumeric == null) {
392392
phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
393+
mGotCountryCode = false;
393394
} else {
394395
String isoCountryCode = "";
395396
try {

telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ protected void pollStateDone() {
964964

965965
if (operatorNumeric == null) {
966966
phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
967+
mGotCountryCode = false;
967968
} else {
968969
String isoCountryCode = "";
969970
try{

telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,7 @@ private void pollStateDone() {
846846

847847
if (operatorNumeric == null) {
848848
phone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_ISO_COUNTRY, "");
849+
mGotCountryCode = false;
849850
} else {
850851
String iso = "";
851852
try{

0 commit comments

Comments
 (0)