diff options
author | 2012-06-27 01:55:45 -0700 | |
---|---|---|
committer | 2012-06-27 01:55:45 -0700 | |
commit | a238e393b93e4b43e0b70685aff7d8991d4ed288 (patch) | |
tree | 6693e384ee0fd23e31f4875cfe6708510f273622 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | |
parent | 59c2cb704f6bec2a6d628a7166aa1ce7cf2760d4 (diff) | |
parent | 05efe576f976f5fa280f8d523f2935c15cbb9bd1 (diff) | |
download | latinime-a238e393b93e4b43e0b70685aff7d8991d4ed288.tar.gz latinime-a238e393b93e4b43e0b70685aff7d8991d4ed288.tar.xz latinime-a238e393b93e4b43e0b70685aff7d8991d4ed288.zip |
Merge "Cleanup the dictionary type."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java index c076fa0f9..1cda9f257 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java @@ -76,9 +76,6 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { /** The expandable fusion dictionary used to generate the binary dictionary. */ private FusionDictionary mFusionDictionary; - /** The dictionary type id. */ - public final int mDicTypeId; - /** * The name of this dictionary, used as the filename for storing the binary dictionary. Multiple * dictionary instances with the same filename is supported, with access controlled by @@ -124,11 +121,11 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { * @param context The application context of the parent. * @param filename The filename for this binary dictionary. Multiple dictionaries with the same * filename is supported. - * @param dictType The type of this dictionary. + * @param dictType the dictionary type, as a human-readable string */ public ExpandableBinaryDictionary( - final Context context, final String filename, final int dictType) { - mDicTypeId = dictType; + final Context context, final String filename, final String dictType) { + super(dictType); mFilename = filename; mContext = context; mBinaryDictionary = null; @@ -308,7 +305,7 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { // Build the new binary dictionary final BinaryDictionary newBinaryDictionary = new BinaryDictionary(mContext, filename, 0, length, true /* useFullEditDistance */, - null, mDicTypeId); + null, mDictType); if (mBinaryDictionary != null) { // Ensure all threads accessing the current dictionary have finished before swapping in |