diff options
author | 2012-12-06 21:01:23 -0800 | |
---|---|---|
committer | 2012-12-06 21:01:24 -0800 | |
commit | 51a95613365b4313dff89db73de76f1cd2de5612 (patch) | |
tree | 0e14f4ee3ced67f69763ea37275ae82bab1ae6d1 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 8fd5aa9583bbf0a63c10410e16952cea42b24dad (diff) | |
parent | 8e2b34cdb24adb1563cc296a4741be7391fa24e9 (diff) | |
download | latinime-51a95613365b4313dff89db73de76f1cd2de5612.tar.gz latinime-51a95613365b4313dff89db73de76f1cd2de5612.tar.xz latinime-51a95613365b4313dff89db73de76f1cd2de5612.zip |
Merge "Cancel batch input when orientation has been changed"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 3935f99ab..305f38d8c 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1553,13 +1553,14 @@ public final class LatinIME extends InputMethodService implements KeyboardAction private void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, final boolean dismissGestureFloatingPreviewText) { - final String batchInputText = suggestedWords.isEmpty() - ? null : suggestedWords.getWord(0); - final KeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); - mainKeyboardView.showGestureFloatingPreviewText(batchInputText); showSuggestionStrip(suggestedWords, null); + final KeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); if (dismissGestureFloatingPreviewText) { mainKeyboardView.dismissGestureFloatingPreviewText(); + } else { + final String batchInputText = suggestedWords.isEmpty() + ? null : suggestedWords.getWord(0); + mainKeyboardView.showGestureFloatingPreviewText(batchInputText); } } |