diff options
author | 2012-07-20 21:01:44 +0900 | |
---|---|---|
committer | 2012-07-25 19:40:55 +0900 | |
commit | 2f81757c3a5eb50d41ce19fb534f72cbf607a997 (patch) | |
tree | 52adbb032abb14f65931764fe68af4cae6a6e21a /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | e68385871ac04d2c557d7997bb81be8a4e874f99 (diff) | |
download | latinime-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.java | 4 |
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; } |