diff options
author | 2010-09-22 00:00:16 -0700 | |
---|---|---|
committer | 2010-09-22 00:00:16 -0700 | |
commit | 7c120ce4872398ea4f61a67aba1d069e45f1c012 (patch) | |
tree | 55b2e8bcf6c47db25f8b6a18e841f5385aa56633 /java/src/com/android/inputmethod/latin/LatinKeyboardView.java | |
parent | 33c13c413ad7cf30d5a12e2ba6c463e01b47e92a (diff) | |
parent | 3a2896c80475094f751ef447fc9c97028bfc2265 (diff) | |
download | latinime-7c120ce4872398ea4f61a67aba1d069e45f1c012.tar.gz latinime-7c120ce4872398ea4f61a67aba1d069e45f1c012.tar.xz latinime-7c120ce4872398ea4f61a67aba1d069e45f1c012.zip |
am 3a2896c8: Fix issue space key preview remains on screen and would not dismiss
Merge commit '3a2896c80475094f751ef447fc9c97028bfc2265' into gingerbread-plus-aosp
* commit '3a2896c80475094f751ef447fc9c97028bfc2265':
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.java | 10 |
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 |