diff options
author | 2013-10-11 05:14:20 -0700 | |
---|---|---|
committer | 2013-10-11 05:14:20 -0700 | |
commit | 614a553a70aa2cbeb982dabbb1cd3fa26cf2dbec (patch) | |
tree | e24e59fd86ffc11f9163b9ed14b4b42acb749490 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 075d8fa65af16a1c2317f6c553d035f4bb1055d3 (diff) | |
parent | eb7fa4dc6d1bd629a34adcf6423c534352d0b00c (diff) | |
download | latinime-614a553a70aa2cbeb982dabbb1cd3fa26cf2dbec.tar.gz latinime-614a553a70aa2cbeb982dabbb1cd3fa26cf2dbec.tar.xz latinime-614a553a70aa2cbeb982dabbb1cd3fa26cf2dbec.zip |
am eb7fa4dc: am 40506273: am ac6d0c65: am 6d915037: Merge "Fix a bug where emojis would remove the suggestion strip." into klp-dev
* commit 'eb7fa4dc6d1bd629a34adcf6423c534352d0b00c':
Fix a bug where emojis would remove the suggestion strip.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 46b75121a..de8e26049 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1261,9 +1261,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final boolean needsInputViewShown) { // TODO: Modify this if we support suggestions with hard keyboard if (onEvaluateInputViewShown() && mSuggestionStripView != null) { - final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); - final boolean inputViewShown = (mainKeyboardView != null) - ? mainKeyboardView.isShown() : false; + final boolean inputViewShown = mKeyboardSwitcher.isShowingMainKeyboardOrEmojiPalettes(); final boolean shouldShowSuggestions = shown && (needsInputViewShown ? inputViewShown : true); if (isFullscreenMode()) { @@ -1329,7 +1327,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (visibleKeyboardView.isShown()) { // Note that the height of Emoji layout is the same as the height of the main keyboard // and the suggestion strip - if (mKeyboardSwitcher.isShowingEmojiKeyboard() + if (mKeyboardSwitcher.isShowingEmojiPalettes() || mSuggestionStripView.getVisibility() == View.VISIBLE) { visibleTopY -= suggestionsHeight; } |