aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-02-06 11:26:48 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-06 11:26:49 +0000
commitfc6d0f8738193057296db4bdb06e3f9be14192c5 (patch)
tree6c0b2c935540f074149d2e3cadc40dc2f252df45 /java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java
parent3bbd50c36b1e9b9e3b26ab510853021515886498 (diff)
parentfc9ca59cc1dccc8353528c42a7eb710ad6d90e14 (diff)
downloadlatinime-fc6d0f8738193057296db4bdb06e3f9be14192c5.tar.gz
latinime-fc6d0f8738193057296db4bdb06e3f9be14192c5.tar.xz
latinime-fc6d0f8738193057296db4bdb06e3f9be14192c5.zip
Merge "Implement getHeaderInfoNative."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java
index 1348d5e77..bb7ae2f9b 100644
--- a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java
+++ b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java
@@ -37,11 +37,11 @@ public class CombinedFormatUtils {
public static String formatAttributeMap(final HashMap<String, String> attributeMap) {
final StringBuilder builder = new StringBuilder();
builder.append(DICTIONARY_TAG + "=");
- if (attributeMap.containsKey(DictionaryHeader.DICTIONARY_DESCRIPTION_KEY)) {
- builder.append(attributeMap.get(DictionaryHeader.DICTIONARY_DESCRIPTION_KEY));
+ if (attributeMap.containsKey(DictionaryHeader.DICTIONARY_ID_KEY)) {
+ builder.append(attributeMap.get(DictionaryHeader.DICTIONARY_ID_KEY));
}
for (final String key : attributeMap.keySet()) {
- if (key == DictionaryHeader.DICTIONARY_DESCRIPTION_KEY) {
+ if (key.equals(DictionaryHeader.DICTIONARY_ID_KEY)) {
continue;
}
final String value = attributeMap.get(key);