aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-10-09 19:32:57 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 19:32:57 -0700
commitfce7e730f05a6f81b5580d9258d4609b0dc8b97c (patch)
treef9e6ab6e80adf9cdb64958395827d3984d083164 /java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parentff95897fea96805d244bff380ea9b57785593c40 (diff)
parent8037b971c24d150deb8aef4b442ed2b21e44e83a (diff)
downloadlatinime-fce7e730f05a6f81b5580d9258d4609b0dc8b97c.tar.gz
latinime-fce7e730f05a6f81b5580d9258d4609b0dc8b97c.tar.xz
latinime-fce7e730f05a6f81b5580d9258d4609b0dc8b97c.zip
am 8037b971: am da4d87ff: am 2dcb6337: Merge "Make SparseTable have multiple content tables."
* commit '8037b971c24d150deb8aef4b442ed2b21e44e83a': Make SparseTable have multiple content tables.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
index 89370f0dc..27cb1c244 100644
--- a/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
+++ b/java/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
@@ -131,7 +131,7 @@ public class Ver4DictDecoder extends DictDecoder {
mDictDirectory.getName() + FormatSpec.BIGRAM_LOOKUP_TABLE_FILE_EXTENSION);
final File contentFile = new File(mDictDirectory,
mDictDirectory.getName() + FormatSpec.BIGRAM_ADDRESS_TABLE_FILE_EXTENSION);
- mBigramAddressTable = SparseTable.readFromFiles(lookupIndexFile, contentFile,
+ mBigramAddressTable = SparseTable.readFromFiles(lookupIndexFile, new File[] { contentFile },
FormatSpec.BIGRAM_ADDRESS_TABLE_BLOCK_SIZE);
}
@@ -208,7 +208,7 @@ public class Ver4DictDecoder extends DictDecoder {
final ArrayList<PendingAttribute> bigrams;
if (0 != (flags & FormatSpec.FLAG_HAS_BIGRAMS)) {
bigrams = new ArrayList<PendingAttribute>();
- final int posOfBigrams = mBigramAddressTable.get(terminalId);
+ final int posOfBigrams = mBigramAddressTable.get(0 /* contentTableIndex */, terminalId);
mBigramBuffer.position(posOfBigrams);
while (bigrams.size() < FormatSpec.MAX_BIGRAMS_IN_A_PTNODE) {
// If bigrams.size() reaches FormatSpec.MAX_BIGRAMS_IN_A_PTNODE,