diff options
author | 2012-12-06 21:03:56 -0800 | |
---|---|---|
committer | 2012-12-06 21:03:56 -0800 | |
commit | 8f3ace097218d12ebc65f30dae97dd2649f9c9d2 (patch) | |
tree | 0e14f4ee3ced67f69763ea37275ae82bab1ae6d1 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 41154ea41c11d935a975be6ba13f99c621d76062 (diff) | |
parent | 51a95613365b4313dff89db73de76f1cd2de5612 (diff) | |
download | latinime-8f3ace097218d12ebc65f30dae97dd2649f9c9d2.tar.gz latinime-8f3ace097218d12ebc65f30dae97dd2649f9c9d2.tar.xz latinime-8f3ace097218d12ebc65f30dae97dd2649f9c9d2.zip |
am 51a95613: Merge "Cancel batch input when orientation has been changed"
* commit '51a95613365b4313dff89db73de76f1cd2de5612':
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); } } |