aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-06-05 17:54:42 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-05 17:54:42 -0700
commitbe2fef4d5e3630c676cbfecf97e1de2f98284eb7 (patch)
tree10033937e54261b5960f0c0780f20b601a0da4fd /java/src
parentf8233ec32d7ff4cf0874cfe68cef1a32f763184a (diff)
parentb94f4cc71c5cbf84d07166efa42991ba96d93c73 (diff)
downloadlatinime-be2fef4d5e3630c676cbfecf97e1de2f98284eb7.tar.gz
latinime-be2fef4d5e3630c676cbfecf97e1de2f98284eb7.tar.xz
latinime-be2fef4d5e3630c676cbfecf97e1de2f98284eb7.zip
Merge "Fix backing view height calculation in landscape orientation" into jb-dev
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index bee374b79..ea2746d00 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -969,7 +969,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
final KeyboardView inputView = mKeyboardSwitcher.getKeyboardView();
if (inputView == null || mSuggestionsContainer == null)
return;
- final int backingHeight = getAdjustedBackingViewHeight();
+ final int adjustedBackingHeight = getAdjustedBackingViewHeight();
+ final boolean backingGone = (mKeyPreviewBackingView.getVisibility() == View.GONE);
+ final int backingHeight = backingGone ? 0 : adjustedBackingHeight;
// In fullscreen mode, the height of the extract area managed by InputMethodService should
// be considered.
// See {@link android.inputmethodservice.InputMethodService#onComputeInsets}.