diff options
author | 2013-05-24 12:06:02 -0700 | |
---|---|---|
committer | 2013-05-24 12:07:30 -0700 | |
commit | 94027c7201a376107a35ec78cd21db1905662601 (patch) | |
tree | 41010bb11ed09145a97b14bd40bf5676e47c9fe3 /java/src/com/android/inputmethod/dictionarypack | |
parent | ebe0544fc83f0f6796e5b0a019222b727a8eb6b3 (diff) | |
download | latinime-94027c7201a376107a35ec78cd21db1905662601.tar.gz latinime-94027c7201a376107a35ec78cd21db1905662601.tar.xz latinime-94027c7201a376107a35ec78cd21db1905662601.zip |
Use Locale.ROOT for locale neutral operations
Bug: 9112465
Change-Id: I6cd63007287b5a1a57cfbabff35d53f66fc5620e
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack')
-rw-r--r-- | java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java index d0e8446f5..77f67b8a3 100644 --- a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java +++ b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java @@ -144,7 +144,7 @@ public final class LocaleUtils { public static String getMatchLevelSortedString(final int matchLevel) { // This works because the match levels are 0~99 (actually 0~30) // Ideally this should use a number of digits equals to the 1og10 of the greater matchLevel - return String.format("%02d", MATCH_LEVEL_MAX - matchLevel); + return String.format(Locale.ROOT, "%02d", MATCH_LEVEL_MAX - matchLevel); } /** |