aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2012-06-29 18:42:15 +0900
committerSatoshi Kataoka <satok@google.com>2012-06-29 18:58:51 +0900
commit71538b08e4e08d556f700ad344562ca2c7b74d82 (patch)
treee3b9789ad7c526023ed1ebfa8cbe9b06b3d4672c /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parent737c87a5f183765e8a5317accac329de202e736f (diff)
downloadlatinime-71538b08e4e08d556f700ad344562ca2c7b74d82.tar.gz
latinime-71538b08e4e08d556f700ad344562ca2c7b74d82.tar.xz
latinime-71538b08e4e08d556f700ad344562ca2c7b74d82.zip
Add input pointers
Change-Id: I95300bf0a847fb86d026e846ff4ad723bb45284f
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/latin/ExpandableDictionary.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
index cfecc664a..76213c0da 100644
--- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
+++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
@@ -268,8 +268,9 @@ public class ExpandableDictionary extends Dictionary {
final ArrayList<SuggestedWordInfo> suggestions = new ArrayList<SuggestedWordInfo>();
mInputLength = codes.size();
if (mCodes.length < mInputLength) mCodes = new int[mInputLength][];
- final int[] xCoordinates = codes.getXCoordinates();
- final int[] yCoordinates = codes.getYCoordinates();
+ final InputPointers ips = codes.getInputPointers();
+ final int[] xCoordinates = ips.getXCoordinates();
+ final int[] yCoordinates = ips.getYCoordinates();
// Cache the codes so that we don't have to lookup an array list
for (int i = 0; i < mInputLength; i++) {
// TODO: Calculate proximity info here.