summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Mahajan <amitmahajan@google.com>2014-12-15 19:27:10 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-15 19:27:10 +0000
commit98cc133f077ba393d6c9a6e302c3e89ade64247f (patch)
tree322465e2f6714c7c87ec2c630a8a2acc51076042
parent878a5a6cd7109183928b9b8b533f11347fd0591a (diff)
parent2fab5307d1983b0415b7eeb79779ecaee7b67ea1 (diff)
downloadframeworks_base-98cc133f077ba393d6c9a6e302c3e89ade64247f.zip
frameworks_base-98cc133f077ba393d6c9a6e302c3e89ade64247f.tar.gz
frameworks_base-98cc133f077ba393d6c9a6e302c3e89ade64247f.tar.bz2
am 2fab5307: am d060b50b: Merge "Change to treat slotId 0 emergency numbers as default." into lmp-mr1-dev
* commit '2fab5307d1983b0415b7eeb79779ecaee7b67ea1': Change to treat slotId 0 emergency numbers as default.
-rw-r--r--telephony/java/android/telephony/PhoneNumberUtils.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java
index 0844232..4ff6389 100644
--- a/telephony/java/android/telephony/PhoneNumberUtils.java
+++ b/telephony/java/android/telephony/PhoneNumberUtils.java
@@ -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);