aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2012-06-29 03:03:01 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-29 03:03:01 -0700
commit105069a15ff0d2ca9efdc7125a46d29b69c44e9a (patch)
treee632d5105cf2f94d11eaf78a86604342781a5efd /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parentf2af726f79ce0812483e156b52b4f19c6d852c4b (diff)
parent71538b08e4e08d556f700ad344562ca2c7b74d82 (diff)
downloadlatinime-105069a15ff0d2ca9efdc7125a46d29b69c44e9a.tar.gz
latinime-105069a15ff0d2ca9efdc7125a46d29b69c44e9a.tar.xz
latinime-105069a15ff0d2ca9efdc7125a46d29b69c44e9a.zip
Merge "Add input pointers"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-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.