diff options
author | 2010-09-06 22:16:11 +0900 | |
---|---|---|
committer | 2010-09-06 22:42:17 +0900 | |
commit | 8d7ffcb2ac3a8cdd051c7e493ff17b6bf1ded9c0 (patch) | |
tree | d61fc7386ba5bad384e04ffb327c0a0b8d71c399 /java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | |
parent | 12659d4c0ce04aaf3d8479e44f9230881b964000 (diff) | |
download | latinime-8d7ffcb2ac3a8cdd051c7e493ff17b6bf1ded9c0.tar.gz latinime-8d7ffcb2ac3a8cdd051c7e493ff17b6bf1ded9c0.tar.xz latinime-8d7ffcb2ac3a8cdd051c7e493ff17b6bf1ded9c0.zip |
Disable pop-up preview on mini keyboard
This change also disable the special behavior of long press a key that
has only one digit alternate. If the visual design of both the pop-up
preview and the mini keyboard will look like same, I think that
showing mini keyboard is enough for the key that has one digit
alternate.
Bug: 2973546
Change-Id: I04f138c120aa58526fe054626dac856171fb7a58
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java index 51bdc2c0c..1e95e8ac4 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java @@ -1073,7 +1073,8 @@ public class LatinKeyboardBaseView extends View implements PointerTracker.UIProx mMiniKeyboardOriginY = y + container.getPaddingTop(); mMiniKeyboard.setPopupOffset((x < 0) ? 0 : x, y); mMiniKeyboard.setShifted(isShifted()); - mMiniKeyboard.setPreviewEnabled(isPreviewEnabled()); + // Mini keyboard needs no pop-up key preview displayed. + mMiniKeyboard.setPreviewEnabled(false); mMiniKeyboardPopup.setContentView(container); mMiniKeyboardPopup.setWidth(container.getMeasuredWidth()); mMiniKeyboardPopup.setHeight(container.getMeasuredHeight()); |