Merge "Change to treat slotId 0 emergency numbers as default." into lmp-mr1-dev

This commit is contained in:
Amit Mahajan
2014-12-15 19:06:46 +00:00
committed by Android (Google) Code Review

View File

@@ -1823,13 +1823,11 @@ public class PhoneNumberUtils
String emergencyNumbers = "";
int slotId = SubscriptionManager.getSlotId(subId);
if (slotId >= 0) {
// retrieve the list of emergency numbers
// check read-write ecclist property first
String ecclist = (slotId == 0) ? "ril.ecclist" : ("ril.ecclist" + slotId);
// retrieve the list of emergency numbers
// check read-write ecclist property first
String ecclist = (slotId <= 0) ? "ril.ecclist" : ("ril.ecclist" + slotId);
emergencyNumbers = SystemProperties.get(ecclist, "");
}
emergencyNumbers = SystemProperties.get(ecclist, "");
Rlog.d(LOG_TAG, "slotId:" + slotId + ", emergencyNumbers: " + emergencyNumbers);