aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTom Ouyang <ouyang@google.com>2012-07-20 21:01:44 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-07-25 19:40:55 +0900
commit2f81757c3a5eb50d41ce19fb534f72cbf607a997 (patch)
tree52adbb032abb14f65931764fe68af4cae6a6e21a /java/src/com/android/inputmethod/latin/LatinIME.java
parente68385871ac04d2c557d7997bb81be8a4e874f99 (diff)
downloadlatinime-2f81757c3a5eb50d41ce19fb534f72cbf607a997.tar.gz
latinime-2f81757c3a5eb50d41ce19fb534f72cbf607a997.tar.xz
latinime-2f81757c3a5eb50d41ce19fb534f72cbf607a997.zip
Add dynamic floating preview for incremental gesture recognition.
Change-Id: I7ba7ac24aa96a0ff19267997c5b58853079bc6dc
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 7d79886fa..9f9d07b3a 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1343,6 +1343,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mWordComposer.setBatchInputPointers(batchPointers);
final SuggestedWords suggestedWords = getSuggestedWords();
showSuggestionStrip(suggestedWords, null);
+ final String gesturePreviewText = (suggestedWords.size() > 0)
+ ? suggestedWords.getWord(0) : null;
+ mKeyboardSwitcher.getKeyboardView().showGesturePreviewText(gesturePreviewText);
}
@Override
@@ -1350,6 +1353,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mWordComposer.setBatchInputPointers(batchPointers);
final SuggestedWords suggestedWords = getSuggestedWords();
showSuggestionStrip(suggestedWords, null);
+ mKeyboardSwitcher.getKeyboardView().showGesturePreviewText(null);
if (suggestedWords == null || suggestedWords.size() == 0) {
return;
}