aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/dictionary.cpp
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2012-07-03 21:56:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-03 21:56:53 -0700
commit30a324a58dbe1e2dc47d83c1bcc0af262ab0d542 (patch)
tree52820b7995972ce16a4d5c34096534f66336010a /native/jni/src/dictionary.cpp
parentc5e911c06b2ab21d3fd2026a307727dccdca911c (diff)
parentdeb0987274d8f351cb4ff2af205ef2fd8cb93c23 (diff)
downloadlatinime-30a324a58dbe1e2dc47d83c1bcc0af262ab0d542.tar.gz
latinime-30a324a58dbe1e2dc47d83c1bcc0af262ab0d542.tar.xz
latinime-30a324a58dbe1e2dc47d83c1bcc0af262ab0d542.zip
Merge "Cleanup gesture code overlay"
Diffstat (limited to 'native/jni/src/dictionary.cpp')
-rw-r--r--native/jni/src/dictionary.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/native/jni/src/dictionary.cpp b/native/jni/src/dictionary.cpp
index 60f3c949b..628a16933 100644
--- a/native/jni/src/dictionary.cpp
+++ b/native/jni/src/dictionary.cpp
@@ -22,7 +22,7 @@
#include "binary_format.h"
#include "defines.h"
#include "dictionary.h"
-#include "incremental_decoder_interface.h"
+#include "gesture_decoder_wrapper.h"
namespace latinime {
@@ -44,8 +44,7 @@ Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
mUnigramDictionary = new UnigramDictionary(mDict + headerSize, typedLetterMultiplier,
fullWordMultiplier, maxWordLength, maxWords, options);
mBigramDictionary = new BigramDictionary(mDict + headerSize, maxWordLength);
- mGestureDecoder = IncrementalDecoderInterface::getGestureDecoderInstance(maxWordLength,
- maxWords);
+ mGestureDecoder = new GestureDecoderWrapper(maxWordLength, maxWords);
mGestureDecoder->setDict(mUnigramDictionary, mBigramDictionary,
mDict + headerSize /* dict root */, 0 /* root pos */);
}