diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-06-16 16:25:43 -0700 |
---|---|---|
committer | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-06-16 17:43:34 -0700 |
commit | 71340347b4862d4b1368a5d69d1667e2245952e4 (patch) | |
tree | 5603f249d330b8dd4b7711dfce27b61878e65e78 /src/com/android/providers/contacts/ContactLocaleUtils.java | |
parent | 07b66b78439296cd27e1ca7c156bc9eeeae85131 (diff) | |
download | packages_providers_ContactsProvider-71340347b4862d4b1368a5d69d1667e2245952e4.zip packages_providers_ContactsProvider-71340347b4862d4b1368a5d69d1667e2245952e4.tar.gz packages_providers_ContactsProvider-71340347b4862d4b1368a5d69d1667e2245952e4.tar.bz2 |
Fix test breakage introduced in ICU upgrade.
- Move HanziToPinyin.java to ContactsProvider package.
- Update tables in the file.
HanziToPinyin.java (in framework) has had collation table for
effectively searching Pinyin-s for Chinese Hanzi-s. The table
is based on previous ICU (4.4, or before).
With I695558055cc139b42b71da9138f61d19bcbd9758, ICU 4.6 is now
available, which has tons of improvements in zh collation, while
HanziToPinyin.java still has a table based on previous ICU. This
caused several test breakages and caused a real problem in Chinese
name sorting.
Also HanziToPinyin.java is only used by ContactsProvider, so there's
no strong reason for us to have it in framework (even though hidden).
It would rather convenient to have it in the provider package to
track issues around the file.
Bug: 4645142
Change-Id: If786dd286dab47ca1b2ccab38c5fa43ae390c0f7
Diffstat (limited to 'src/com/android/providers/contacts/ContactLocaleUtils.java')
-rw-r--r-- | src/com/android/providers/contacts/ContactLocaleUtils.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/providers/contacts/ContactLocaleUtils.java b/src/com/android/providers/contacts/ContactLocaleUtils.java index 1c2ad97..0fc8231 100644 --- a/src/com/android/providers/contacts/ContactLocaleUtils.java +++ b/src/com/android/providers/contacts/ContactLocaleUtils.java @@ -16,16 +16,16 @@ package com.android.providers.contacts; +import com.android.providers.contacts.HanziToPinyin.Token; + +import android.provider.ContactsContract.FullNameStyle; + import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Locale; -import android.provider.ContactsContract.FullNameStyle; -import com.android.internal.util.HanziToPinyin; -import com.android.internal.util.HanziToPinyin.Token; - /** * This utility class provides customized sort key and name lookup key according the locale. */ |