diff options
author | 2012-06-05 17:56:47 -0700 | |
---|---|---|
committer | 2012-06-05 17:56:47 -0700 | |
commit | 2eb5eb4d447cb326b4c10cff2cae64df4e431ffd (patch) | |
tree | 60d75b30b921374eb833419150f75206e2c12889 /java/src | |
parent | 6b0d0fa3501247ccf3190c938dec580102fe0473 (diff) | |
parent | be2fef4d5e3630c676cbfecf97e1de2f98284eb7 (diff) | |
download | latinime-2eb5eb4d447cb326b4c10cff2cae64df4e431ffd.tar.gz latinime-2eb5eb4d447cb326b4c10cff2cae64df4e431ffd.tar.xz latinime-2eb5eb4d447cb326b4c10cff2cae64df4e431ffd.zip |
am be2fef4d: Merge "Fix backing view height calculation in landscape orientation" into jb-dev
* commit 'be2fef4d5e3630c676cbfecf97e1de2f98284eb7':
Fix backing view height calculation in landscape orientation
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 4 |
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}. |