diff options
author | Conley Owens <cco3@android.com> | 2011-04-29 17:15:13 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-04-29 17:15:13 -0700 |
commit | 737b5c58c9094e5759bd4162f23f73be2b71faaf (patch) | |
tree | f24bae4f35d1eae86d15d882a938a2c73b702cde /telephony/java/android | |
parent | 1eb31b434fdc325c55b65ecf1783c63b2fdfa669 (diff) | |
parent | 520dd927cbe02ae52add1f90e282750582a9e95e (diff) | |
download | frameworks_base-737b5c58c9094e5759bd4162f23f73be2b71faaf.zip frameworks_base-737b5c58c9094e5759bd4162f23f73be2b71faaf.tar.gz frameworks_base-737b5c58c9094e5759bd4162f23f73be2b71faaf.tar.bz2 |
am 520dd927: am 9355a24a: Merge "Fixing wrong Japanese phone formatter."
* commit '520dd927cbe02ae52add1f90e282750582a9e95e':
Fixing wrong Japanese phone formatter.
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/JapanesePhoneNumberFormatter.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/JapanesePhoneNumberFormatter.java b/telephony/java/android/telephony/JapanesePhoneNumberFormatter.java index 6390d8e..f5e53ef 100644 --- a/telephony/java/android/telephony/JapanesePhoneNumberFormatter.java +++ b/telephony/java/android/telephony/JapanesePhoneNumberFormatter.java @@ -24,6 +24,7 @@ import android.text.Editable; * * 022-229-1234 0223-23-1234 022-301-9876 015-482-7849 0154-91-3478 * 01547-5-4534 090-1234-1234 080-0123-6789 + * 050-0000-0000 060-0000-0000 * 0800-000-9999 0570-000-000 0276-00-0000 * * As you can see, there is no straight-forward rule here. @@ -31,7 +32,7 @@ import android.text.Editable; */ /* package */ class JapanesePhoneNumberFormatter { private static short FORMAT_MAP[] = { - -100, 10, 220, -15, 410, 530, -15, 670, 780, 1060, + -100, 10, 220, -15, 410, 530, 1200, 670, 780, 1060, -100, -25, 20, 40, 70, 100, 150, 190, 200, 210, -36, -100, -100, -35, -35, -35, 30, -100, -100, -100, -35, -35, -35, -35, -35, -35, -35, -45, -35, -35, @@ -84,7 +85,7 @@ import android.text.Editable; -35, -25, -25, -25, -25, -25, -25, -25, -25, -25, -25, -25, -25, -35, -35, -35, -25, -25, -25, 520, -100, -100, -45, -100, -45, -100, -45, -100, -45, -100, - -25, -100, -25, 540, 580, 590, 600, 610, 630, 640, + -26, -100, -25, 540, 580, 590, 600, 610, 630, 640, -25, -35, -35, -35, -25, -25, -35, -35, -35, 550, -35, -35, -25, -25, -25, -25, 560, 570, -25, -35, -35, -35, -35, -35, -25, -25, -25, -25, -25, -25, @@ -150,7 +151,8 @@ import android.text.Editable; -35, 1170, -25, -35, 1180, -35, 1190, -35, -25, -25, -100, -100, -45, -45, -100, -100, -100, -100, -100, -100, -25, -35, -35, -35, -35, -35, -35, -25, -25, -35, - -35, -35, -35, -35, -35, -35, -35, -35, -35, -45}; + -35, -35, -35, -35, -35, -35, -35, -35, -35, -45, + -26, -15, -15, -15, -15, -15, -15, -15, -15, -15}; public static void format(Editable text) { // Here, "root" means the position of "'": |