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

Commit ba82088b authored by Nick Kralevich's avatar Nick Kralevich Committed by Android (Google) Code Review
Browse files

Merge "Modify emergency number detection"

parents c948d07b 1234ce11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1497,7 +1497,7 @@ public class PhoneNumberUtils
            // searches through the comma-separated list for a match,
            // return true if one is found.
            for (String emergencyNum : numbers.split(",")) {
                if (emergencyNum.equals(number)) {
                if (number.startsWith(emergencyNum)) {
                    return true;
                }
            }
@@ -1506,7 +1506,7 @@ public class PhoneNumberUtils
        }

        //no ecclist system property, so use our own list.
        return (number.equals("112") || number.equals("911"));
        return (number.startsWith("112") || number.startsWith("911"));
    }

    /**