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

Commit c0234a9d authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22474 into eclair

* changes:
  Compose Message "To" field allows adding sequence of characters as contact
parents 4df8dd8a e43a6a02
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1263,6 +1263,21 @@ public final class Telephony {
            return match.matches();
        }

        /**
         * Returns true if the number is a Phone number
         *
         * @param number the input number to be tested
         * @return true if number is a Phone number
         */
        public static boolean isPhoneNumber(String number) {
            if (TextUtils.isEmpty(number)) {
                return false;
            }

            Matcher match = Regex.PHONE_PATTERN.matcher(number);
            return match.matches();
        }

        /**
         * Contains all MMS messages in the MMS app's inbox.
         */