aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-05-23 11:24:53 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-23 11:24:53 +0000
commitb59272c944eb60584b4dff40b79c429c88347532 (patch)
treeffe9420cd8fcf3ed302e8cb071d4b5c5b5c22571 /java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java
parent662c22759b7be19e6871f0e63c3d2f0bad68646e (diff)
parenta37f374ad140f14e5e8ecaef9e1dbee3b1d7b84c (diff)
downloadlatinime-b59272c944eb60584b4dff40b79c429c88347532.tar.gz
latinime-b59272c944eb60584b4dff40b79c429c88347532.tar.xz
latinime-b59272c944eb60584b4dff40b79c429c88347532.zip
Merge "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.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() {