aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboard.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-09-21 16:55:18 +0900
committerTadashi G. Takaoka <takaoka@google.com>2010-09-22 15:50:31 +0900
commit3a2896c80475094f751ef447fc9c97028bfc2265 (patch)
tree55b2e8bcf6c47db25f8b6a18e841f5385aa56633 /java/src/com/android/inputmethod/latin/LatinKeyboard.java
parent75c23ced94979a6b3f7c59e95dd46385e9702e2d (diff)
downloadlatinime-3a2896c80475094f751ef447fc9c97028bfc2265.tar.gz
latinime-3a2896c80475094f751ef447fc9c97028bfc2265.tar.xz
latinime-3a2896c80475094f751ef447fc9c97028bfc2265.zip
Fix issue space key preview remains on screen and would not dismiss
The space key preview should be displayed one of the following case. - Popup preview is enabled - Language switcher is in action, whether popup preview is enabled or not. For phone number keyboard, popup preview is never displayed even if popup preview is enabled. Bug: 3006612 Bug: 3021091 Change-Id: I5385c776d0e8e3981fc8d8851db9140d92599ce5
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboard.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinKeyboard.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboard.java b/java/src/com/android/inputmethod/latin/LatinKeyboard.java
index 8b89f3900..d39766d53 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboard.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboard.java
@@ -131,7 +131,7 @@ public class LatinKeyboard extends Keyboard {
R.dimen.spacebar_vertical_correction);
mIsAlphaKeyboard = xmlLayoutResId == R.xml.kbd_qwerty
|| xmlLayoutResId == R.xml.kbd_qwerty_black;
- mSpaceKeyIndex = indexOf(' ');
+ mSpaceKeyIndex = indexOf(LatinIME.KEYCODE_SPACE);
initializeNumberHintResources(context);
}
@@ -384,6 +384,10 @@ public class LatinKeyboard extends Keyboard {
}
}
+ public boolean isLanguageSwitchEnabled() {
+ return mLocale != null;
+ }
+
private void updateSpaceBarForLocale(boolean isAutoCompletion, boolean isBlack) {
// If application locales are explicitly selected.
if (mLocale != null) {