From 83749f347938d3955c887588756aa7b4fcb32c78 Mon Sep 17 00:00:00 2001 From: "giseok.seo" Date: Fri, 22 Aug 2014 10:30:35 +0900 Subject: Use proper ril.ecclist when no sim state Bug: 17139446 Signed-off-by: giseok.seo Change-Id: I2f420973b29092b8a6cceb8cf4bd77d0ee8372bd --- telephony/java/android/telephony/PhoneNumberUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'telephony') diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java index b935d2a..acb97a0 100644 --- a/telephony/java/android/telephony/PhoneNumberUtils.java +++ b/telephony/java/android/telephony/PhoneNumberUtils.java @@ -1825,7 +1825,7 @@ public class PhoneNumberUtils int slotId = SubscriptionManager.getSlotId(subId); // retrieve the list of emergency numbers // check read-write ecclist property first - String ecclist = (slotId == 0) ? "ril.ecclist" : ("ril.ecclist" + slotId); + String ecclist = (slotId <= 0) ? "ril.ecclist" : ("ril.ecclist" + slotId); numbers = SystemProperties.get(ecclist); -- cgit v1.1