aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-06-05 17:58:59 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-05 17:58:59 -0700
commit876711930d79e3cb4a0fc265ba1d8e6c8018b7a7 (patch)
treebe968fc34dca51ba25bc865a195a1303677cf1df /java/src
parent7b250c25f7876aaa38b7c015ed5d366d49558c49 (diff)
parent2eb5eb4d447cb326b4c10cff2cae64df4e431ffd (diff)
downloadlatinime-876711930d79e3cb4a0fc265ba1d8e6c8018b7a7.tar.gz
latinime-876711930d79e3cb4a0fc265ba1d8e6c8018b7a7.tar.xz
latinime-876711930d79e3cb4a0fc265ba1d8e6c8018b7a7.zip
am 2eb5eb4d: am be2fef4d: Merge "Fix backing view height calculation in landscape orientation" into jb-dev
* commit '2eb5eb4d447cb326b4c10cff2cae64df4e431ffd': Fix backing view height calculation in landscape orientation
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 98cf76cd0..7092b4e7e 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -982,7 +982,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}.