diff options
author | 2014-01-30 08:21:34 +0000 | |
---|---|---|
committer | 2014-01-30 08:21:34 +0000 | |
commit | 7ceee45376d104a79723aa2aaeb30057e6f7e513 (patch) | |
tree | b0f848e21ea02074aa1e01a77c3fb1459e906d9d /java/src | |
parent | a279008a5ac69cb33ff8baa24b7b21fceee94f20 (diff) | |
parent | 971bbcf562147eb3bc4ca503fa61f267a6d1e771 (diff) | |
download | latinime-7ceee45376d104a79723aa2aaeb30057e6f7e513.tar.gz latinime-7ceee45376d104a79723aa2aaeb30057e6f7e513.tar.xz latinime-7ceee45376d104a79723aa2aaeb30057e6f7e513.zip |
Merge "Fix historical info of bigrams reading."
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java index f23022992..e459e4861 100644 --- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java +++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java @@ -215,11 +215,12 @@ public class Ver4DictDecoder extends AbstractDictDecoder { if (options.mHasTimestamp) { probability = buffer.readUnsignedByte(); - final int pos = buffer.position(); - // Skip historical info. - buffer.position(pos + FormatSpec.BIGRAM_TIMESTAMP_SIZE - + FormatSpec.BIGRAM_LEVEL_SIZE - + FormatSpec.BIGRAM_COUNTER_SIZE); + // Skip timestamp + buffer.readInt(); + // Skip level + buffer.readUnsignedByte(); + // Skip count + buffer.readUnsignedByte(); } else { probability = bigramFlags & FormatSpec.FLAG_BIGRAM_SHORTCUT_ATTR_FREQUENCY; |