diff options
author | 2013-12-06 04:30:24 +0000 | |
---|---|---|
committer | 2013-12-06 04:30:25 +0000 | |
commit | cb27d955f334754e6cad0a5c3f8e13e913803f4a (patch) | |
tree | cd176c9c08be8b4fbcdce0012c241d53cd81b712 /java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java | |
parent | 08b84a6bed2fff7dba8696c9bcb6aedb79bd2f52 (diff) | |
parent | b8481456f232e00e0be31dec0b199ee563de75a5 (diff) | |
download | latinime-cb27d955f334754e6cad0a5c3f8e13e913803f4a.tar.gz latinime-cb27d955f334754e6cad0a5c3f8e13e913803f4a.tar.xz latinime-cb27d955f334754e6cad0a5c3f8e13e913803f4a.zip |
Merge "[RF2] Some refactoring and some cleanup"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java b/java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java index 529ddc257..f9733f725 100644 --- a/java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java +++ b/java/src/com/android/inputmethod/latin/personalization/DecayingExpandableBinaryDictionaryBase.java @@ -114,8 +114,10 @@ public abstract class DecayingExpandableBinaryDictionaryBase extends ExpandableB } @Override - protected boolean isValidBinaryDictFormatVersion(final int formatVersion) { - return formatVersion >= REQUIRED_BINARY_DICTIONARY_VERSION; + protected boolean matchesExpectedBinaryDictFormatVersionForThisType(final int formatVersion) { + // This class is using format 4 because it's used by all version 4 dictionaries. + // TODO: remove this when all dynamically generated dicts use version 4. + return formatVersion == REQUIRED_BINARY_DICTIONARY_VERSION; } @Override |