aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
diff options
context:
space:
mode:
authorKurt Partridge <kep@google.com>2012-04-11 21:42:22 -0700
committerKurt Partridge <kep@google.com>2012-04-16 16:52:25 -0700
commit9bfb6202154e06d7156f2f374dd9359f1be4eb68 (patch)
tree55597afdc782b7a545da9b856488c86524e529fd /java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
parent473a3dd66952711d76e6d3e74292c0d6c7fa38d2 (diff)
downloadlatinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.tar.gz
latinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.tar.xz
latinime-9bfb6202154e06d7156f2f374dd9359f1be4eb68.zip
add logPoint for manual correction (inc touch pos)
Bug: 6188932 Change-Id: Ibcc4901bcfab6632ee4c59cb58d35452218a288d
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