diff options
author | 2013-02-22 23:12:35 -0800 | |
---|---|---|
committer | 2013-02-22 23:12:35 -0800 | |
commit | cd0f9aef05960d84468704bff3de1ccb918c0edd (patch) | |
tree | 362ccd50fd7dba8858aa8c04816568f58c8b0f2d /java/src/com/android/inputmethod/latin/makedict/FormatSpec.java | |
parent | df32362794c225b335c413552401fa03113a07e6 (diff) | |
parent | 2521edec09373b2810093462c89221a2aca9e369 (diff) | |
download | latinime-cd0f9aef05960d84468704bff3de1ccb918c0edd.tar.gz latinime-cd0f9aef05960d84468704bff3de1ccb918c0edd.tar.xz latinime-cd0f9aef05960d84468704bff3de1ccb918c0edd.zip |
am 2521edec: Fix a bug with the passed dictionary id
* commit '2521edec09373b2810093462c89221a2aca9e369':
Fix a bug with the passed dictionary id
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/FormatSpec.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/FormatSpec.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java index 83acca874..60ba66e27 100644 --- a/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java +++ b/java/src/com/android/inputmethod/latin/makedict/FormatSpec.java @@ -258,6 +258,7 @@ public final class FormatSpec { public final FormatOptions mFormatOptions; private static final String DICTIONARY_VERSION_ATTRIBUTE = "version"; private static final String DICTIONARY_LOCALE_ATTRIBUTE = "locale"; + private static final String DICTIONARY_ID_ATTRIBUTE = "dictionary"; public FileHeader(final int headerSize, final DictionaryOptions dictionaryOptions, final FormatOptions formatOptions) { mHeaderSize = headerSize; @@ -274,6 +275,11 @@ public final class FormatSpec { public String getVersion() { return mDictionaryOptions.mAttributes.get(FileHeader.DICTIONARY_VERSION_ATTRIBUTE); } + + // Helper method to get the dictionary ID as a String + public String getId() { + return mDictionaryOptions.mAttributes.get(FileHeader.DICTIONARY_ID_ATTRIBUTE); + } } private FormatSpec() { |