aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
diff options
context:
space:
mode:
authorYuichiro Hanada <yhanada@google.com>2013-10-10 23:57:54 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-10 23:57:54 -0700
commitc068780b9d66348af776893fe3178f9d3630801f (patch)
tree9e04c491996c8323547d8f2718b98574baaa3427 /java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parent39c6ea2115df1426d069d30db8286fc90b77967a (diff)
parent9514ed5c2a49e645e2d468f7191d54d77d9f127f (diff)
downloadlatinime-c068780b9d66348af776893fe3178f9d3630801f.tar.gz
latinime-c068780b9d66348af776893fe3178f9d3630801f.tar.xz
latinime-c068780b9d66348af776893fe3178f9d3630801f.zip
am 9514ed5c: Add the new format of bigram entries.
* commit '9514ed5c2a49e645e2d468f7191d54d77d9f127f': Add the new format of bigram entries.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
index 53729075f..734223ec2 100644
--- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
@@ -153,8 +153,12 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
final File contentFile = new File(mDictDirectory, mDictDirectory.getName()
+ FormatSpec.SHORTCUT_FILE_EXTENSION + FormatSpec.CONTENT_TABLE_FILE_SUFFIX
+ FormatSpec.SHORTCUT_CONTENT_ID);
+ final File timestampsFile = new File(mDictDirectory, mDictDirectory.getName()
+ + FormatSpec.SHORTCUT_FILE_EXTENSION + FormatSpec.CONTENT_TABLE_FILE_SUFFIX
+ + FormatSpec.SHORTCUT_CONTENT_ID);
mShortcutAddressTable = SparseTable.readFromFiles(lookupIndexFile,
- new File[] { contentFile }, FormatSpec.SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE);
+ new File[] { contentFile, timestampsFile },
+ FormatSpec.SHORTCUT_ADDRESS_TABLE_BLOCK_SIZE);
}
protected static class PtNodeReader extends AbstractDictDecoder.PtNodeReader {