aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-23 20:20:56 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-05-23 20:20:56 +0900
commita37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c (patch)
tree71b3ec258a380c806a710c8ecd49af8b358401f2 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
parent1adca93381d261a6070be2721dbf8b8abafbfe01 (diff)
downloadlatinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.tar.gz
latinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.tar.xz
latinime-a37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c.zip
Version up dynamic dict format from 401 to 402.
Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java3
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() {