aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-06-05 16:45:31 -0700
committerTadashi G. Takaoka <takaoka@google.com>2012-06-05 17:41:01 -0700
commitb94f4cc71c5cbf84d07166efa42991ba96d93c73 (patch)
tree1d7deb09af2fbdd704d4dbd8dbf2ee3e6452eca7 /java/src
parenta6166d3776c810e51789bfdc19e4823acd4a2f18 (diff)
downloadlatinime-b94f4cc71c5cbf84d07166efa42991ba96d93c73.tar.gz
latinime-b94f4cc71c5cbf84d07166efa42991ba96d93c73.tar.xz
latinime-b94f4cc71c5cbf84d07166efa42991ba96d93c73.zip
Fix backing view height calculation in landscape orientation
This logic has been dropped by Ib814c07f. Bug: 6610497 Change-Id: Id89ad3280b73a31d8c9c6826e9ee297791624db1
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}.