aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-21 10:44:22 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-21 10:44:22 -0700
commit75abaf5d8f2367bad2d51bf983586bd9baa93952 (patch)
treefdefce38d1a2d41f809cc80c8e9a0ae878514740 /java/src
parent051511fa091448edd4787e2ab2b7c8e4845efcd9 (diff)
parent9c822ec48de0e6839a861212d8b7143f70b29fd1 (diff)
downloadlatinime-75abaf5d8f2367bad2d51bf983586bd9baa93952.tar.gz
latinime-75abaf5d8f2367bad2d51bf983586bd9baa93952.tar.xz
latinime-75abaf5d8f2367bad2d51bf983586bd9baa93952.zip
am 9c822ec4: am 6b75eaa1: Fix mini keyboard display position when preview is disabled
Merge commit '9c822ec48de0e6839a861212d8b7143f70b29fd1' * commit '9c822ec48de0e6839a861212d8b7143f70b29fd1': Fix mini keyboard display position when preview is disabled
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
index 5ec5eb9d9..a2db12979 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
@@ -1119,7 +1119,7 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx
popupY -= container.getMeasuredHeight();
popupY += container.getPaddingBottom();
final int x = popupX;
- final int y = isOneRowKeyboard(mMiniKeyboard.getKeyboard())
+ final int y = mShowPreview && isOneRowKeyboard(mMiniKeyboard.getKeyboard())
? mPopupPreviewDisplayedY : popupY;
int adjustedX = x;