diff options
author | 2011-04-21 19:11:48 +0900 | |
---|---|---|
committer | 2011-04-21 19:11:48 +0900 | |
commit | bbb42bff9ea9a4ae992b3a6a5ed586de914ea4cd (patch) | |
tree | ba95d17cc205d830cabc05151349ae18b580d594 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | e75e4463cdd2b9ba672faa6b0b1a6e3083e61543 (diff) | |
parent | c9c3aa219e56c4707215c28495210a2393ff50c7 (diff) | |
download | latinime-bbb42bff9ea9a4ae992b3a6a5ed586de914ea4cd.tar.gz latinime-bbb42bff9ea9a4ae992b3a6a5ed586de914ea4cd.tar.xz latinime-bbb42bff9ea9a4ae992b3a6a5ed586de914ea4cd.zip |
Merge remote-tracking branch 'goog/master' into merge
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 13ef4ffe8..a680b9825 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -901,15 +901,15 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar public void onComputeInsets(InputMethodService.Insets outInsets) { super.onComputeInsets(outInsets); final KeyboardView inputView = mKeyboardSwitcher.getInputView(); + if (inputView == null) + return; + final int containerHeight = mCandidateViewContainer.getHeight(); + int touchY = containerHeight; // Need to set touchable region only if input view is being shown - if (inputView != null && mKeyboardSwitcher.isInputViewShown()) { - final int containerHeight = mCandidateViewContainer.getHeight(); - int touchY = containerHeight; + if (mKeyboardSwitcher.isInputViewShown()) { if (mCandidateViewContainer.getVisibility() == View.VISIBLE) { touchY -= mCandidateStripHeight; } - outInsets.contentTopInsets = touchY; - outInsets.visibleTopInsets = touchY; final int touchWidth = inputView.getWidth(); final int touchHeight = inputView.getHeight() + containerHeight // Extend touchable region below the keyboard. @@ -920,6 +920,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } setTouchableRegionCompat(outInsets, 0, touchY, touchWidth, touchHeight); } + outInsets.contentTopInsets = touchY; + outInsets.visibleTopInsets = touchY; } @Override |