diff options
author | 2014-05-23 11:27:46 +0000 | |
---|---|---|
committer | 2014-05-23 11:27:46 +0000 | |
commit | 7336fc13debb5c4824cc7919ca15a9af2766eaf4 (patch) | |
tree | ffe9420cd8fcf3ed302e8cb071d4b5c5b5c22571 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | |
parent | 574a0856f102a2251fe7c79fbdae5ac76319f4d7 (diff) | |
parent | b59272c944eb60584b4dff40b79c429c88347532 (diff) | |
download | latinime-7336fc13debb5c4824cc7919ca15a9af2766eaf4.tar.gz latinime-7336fc13debb5c4824cc7919ca15a9af2766eaf4.tar.xz latinime-7336fc13debb5c4824cc7919ca15a9af2766eaf4.zip |
am b59272c9: Merge "Version up dynamic dict format from 401 to 402."
* commit 'b59272c944eb60584b4dff40b79c429c88347532':
Version up dynamic dict format from 401 to 402.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java index 334ebb37d..2cbce045d 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java @@ -114,7 +114,8 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { private boolean needsToMigrateDictionary(final int formatVersion) { // When we bump up the dictionary format version, the old version should be added to here // for supporting migration. Note that native code has to support reading such formats. - return formatVersion == FormatSpec.VERSION4_ONLY_FOR_TESTING; + return formatVersion == FormatSpec.VERSION4_ONLY_FOR_TESTING + || formatVersion == FormatSpec.VERSION401; } public boolean isValidDictionaryLocked() { |