aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-22 00:10:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-22 00:10:16 -0700
commitdb6b89711823fc2d5282286a8efaa3d94bae32cb (patch)
treee6e35227d5ee9252b7c8e19d233e8341b4a8c85d /java/src/com/android/inputmethod/latin/LatinKeyboardView.java
parent60f6e5d461156c386e632a29e418e04e6d146d51 (diff)
parent7c120ce4872398ea4f61a67aba1d069e45f1c012 (diff)
downloadlatinime-db6b89711823fc2d5282286a8efaa3d94bae32cb.tar.gz
latinime-db6b89711823fc2d5282286a8efaa3d94bae32cb.tar.xz
latinime-db6b89711823fc2d5282286a8efaa3d94bae32cb.zip
am 7c120ce4: am 3a2896c8: Fix issue space key preview remains on screen and would not dismiss
Merge commit '7c120ce4872398ea4f61a67aba1d069e45f1c012' * commit '7c120ce4872398ea4f61a67aba1d069e45f1c012': Fix issue space key preview remains on screen and would not dismiss
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboardView.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
index a45bb21e9..2872f6b46 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardView.java
@@ -66,6 +66,16 @@ public class LatinKeyboardView extends LatinKeyboardBaseView {
}
@Override
+ public void setPreviewEnabled(boolean previewEnabled) {
+ if (getKeyboard() == mPhoneKeyboard) {
+ // Phone keyboard never shows popup preview (except language switch).
+ super.setPreviewEnabled(false);
+ } else {
+ super.setPreviewEnabled(previewEnabled);
+ }
+ }
+
+ @Override
public void setKeyboard(Keyboard k) {
super.setKeyboard(k);
// One-seventh of the keyboard width seems like a reasonable threshold