diff options
author | 2010-09-22 00:10:16 -0700 | |
---|---|---|
committer | 2010-09-22 00:10:16 -0700 | |
commit | db6b89711823fc2d5282286a8efaa3d94bae32cb (patch) | |
tree | e6e35227d5ee9252b7c8e19d233e8341b4a8c85d /java/src/com/android/inputmethod/latin/LatinKeyboardView.java | |
parent | 60f6e5d461156c386e632a29e418e04e6d146d51 (diff) | |
parent | 7c120ce4872398ea4f61a67aba1d069e45f1c012 (diff) | |
download | latinime-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.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 |