Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fab5307 authored by Amit Mahajan's avatar Amit Mahajan Committed by Android Git Automerger
Browse files

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

* commit 'd060b50b':
  Change to treat slotId 0 emergency numbers as default.
parents 2f11125a d060b50b
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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);
        String ecclist = (slotId <= 0) ? "ril.ecclist" : ("ril.ecclist" + slotId);

        emergencyNumbers = SystemProperties.get(ecclist, "");
        }

        Rlog.d(LOG_TAG, "slotId:" + slotId + ", emergencyNumbers: " +  emergencyNumbers);