aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-04-16 20:36:24 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-16 20:36:24 -0700
commit40edd14c159c321fcb736225520daf1a6f904f09 (patch)
tree4bae1bf8df7687cbd4f0167185500e95befcd32a /java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
parent9c2a96aa6cb6d8c1f7a559dbd7051302cfc6150b (diff)
parent9bfb6202154e06d7156f2f374dd9359f1be4eb68 (diff)
downloadlatinime-40edd14c159c321fcb736225520daf1a6f904f09.tar.gz
latinime-40edd14c159c321fcb736225520daf1a6f904f09.tar.xz
latinime-40edd14c159c321fcb736225520daf1a6f904f09.zip
Merge "add logPoint for manual correction (inc touch pos)"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
index 01d51d463..4e1410415 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
@@ -72,7 +72,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
OnLongClickListener {
public interface Listener {
public boolean addWordToDictionary(String word);
- public void pickSuggestionManually(int index, CharSequence word);
+ public void pickSuggestionManually(int index, CharSequence word, int x, int y);
}
// The maximum number of suggestions available. See {@link Suggest#mPrefMaxSuggestions}.
@@ -717,7 +717,9 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
public boolean onCustomRequest(int requestCode) {
final int index = requestCode;
final CharSequence word = mSuggestedWords.getWord(index);
- mListener.pickSuggestionManually(index, word);
+ // TODO: change caller path so coordinates are passed through here
+ mListener.pickSuggestionManually(index, word, NOT_A_TOUCH_COORDINATE,
+ NOT_A_TOUCH_COORDINATE);
dismissMoreSuggestions();
return true;
}
@@ -867,7 +869,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
return;
final CharSequence word = mSuggestedWords.getWord(index);
- mListener.pickSuggestionManually(index, word);
+ mListener.pickSuggestionManually(index, word, mLastX, mLastY);
}
@Override