Fixed a SimSettings issue
+ SimSettings will not automatically select the first SIM for the user.
Bug: 18528013
Change-Id: I4c2024860231f6124a801feda821bc16bc2c4772
diff --git a/src/com/android/settings/sim/SimSettings.java b/src/com/android/settings/sim/SimSettings.java
index 69dbbe0..0fe024b 100644
--- a/src/com/android/settings/sim/SimSettings.java
+++ b/src/com/android/settings/sim/SimSettings.java
@@ -210,9 +210,8 @@
mSubscriptionManager.getDefaultSmsSubId());
simPref.setTitle(R.string.sms_messages_title);
if (DBG) log("[updateSmsValues] mSubInfoList=" + mSubInfoList);
- if (mSubInfoList != null && mSubInfoList.size() == 1) {
- simPref.setSummary(mSubInfoList.get(0).getDisplayName());
- } else if (sir != null) {
+
+ if (sir != null) {
simPref.setSummary(sir.getDisplayName());
} else if (sir == null) {
simPref.setSummary(R.string.sim_selection_required_pref);
@@ -227,9 +226,7 @@
simPref.setTitle(R.string.cellular_data_title);
if (DBG) log("[updateCellularDataValues] mSubInfoList=" + mSubInfoList);
- if (mSubInfoList != null && mSubInfoList.size() == 1) {
- simPref.setSummary(mSubInfoList.get(0).getDisplayName());
- } else if (sir != null) {
+ if (sir != null) {
simPref.setSummary(sir.getDisplayName());
} else if (sir == null) {
simPref.setSummary(R.string.sim_selection_required_pref);