diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2014-12-18 10:29:16 -0800 |
---|---|---|
committer | Sanket Padawe <sanketpadawe@google.com> | 2014-12-18 10:29:16 -0800 |
commit | 19627ca215fa643a443722f183f3f781d4a2b041 (patch) | |
tree | 003350e9c8c92988e0faee8abe5cb9653bcc9f46 /src/com/android/settings/ApnSettings.java | |
parent | c4cc07b2c7f91cdb3695c499f7dca17b8aa9cb6b (diff) | |
download | packages_apps_Settings-19627ca215fa643a443722f183f3f781d4a2b041.tar.gz packages_apps_Settings-19627ca215fa643a443722f183f3f781d4a2b041.tar.bz2 packages_apps_Settings-19627ca215fa643a443722f183f3f781d4a2b041.zip |
Getting mcc/mnc from system prop instead of subInfoRecord.
Bug: 18781129
Change-Id: Idb4c70c9b936a947460e6c6d03bd40dc2ae4279a
Diffstat (limited to 'src/com/android/settings/ApnSettings.java')
-rw-r--r-- | src/com/android/settings/ApnSettings.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/settings/ApnSettings.java b/src/com/android/settings/ApnSettings.java index db5449f37..836a74d55 100644 --- a/src/com/android/settings/ApnSettings.java +++ b/src/com/android/settings/ApnSettings.java @@ -53,6 +53,7 @@ import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.TelephonyIntents; import com.android.internal.telephony.TelephonyProperties; +import android.telephony.TelephonyManager; import java.util.ArrayList; @@ -202,9 +203,10 @@ public class ApnSettings extends SettingsPreferenceFragment implements } private void fillList() { + final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); final String mccmnc = mSubscriptionInfo == null ? "" - : Integer.toString(mSubscriptionInfo.getMcc()) - + Integer.toString(mSubscriptionInfo.getMnc()); + : tm.getSimOperator(mSubscriptionInfo.getSubscriptionId()); + Log.d(TAG, "mccmnc = " + mccmnc); final String where = "numeric=\"" + mccmnc + "\""; |