aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorYohei Fujii <yfujii@google.com>2010-08-13 19:02:34 +0900
committerYohei Fujii <yfujii@google.com>2010-08-13 19:02:34 +0900
commitfda1ae71b5c9582adf809ef723397ca244752696 (patch)
treec0a896413a5a2b866494c21533115e2911adc21b /java/src
parent648dcf55a369951eec5c7a29b8035105373b335b (diff)
downloadlatinime-fda1ae71b5c9582adf809ef723397ca244752696.tar.gz
latinime-fda1ae71b5c9582adf809ef723397ca244752696.tar.xz
latinime-fda1ae71b5c9582adf809ef723397ca244752696.zip
Fixed the issue of popup enabled when i change to symbol keyboard.
Bug:2909517 Change-Id: I1c010b1079a04ff3b08d690c536fbe8d4414ea14
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/KeyboardSwitcher.java2
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
index bcf4902f2..ed6adce9e 100644
--- a/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
+++ b/java/src/com/android/inputmethod/latin/KeyboardSwitcher.java
@@ -230,7 +230,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
}
mIsSymbols = isSymbols;
- mInputView.setPreviewEnabled(true);
+ mInputView.setPreviewEnabled(mInputMethodService.getPopupOn());
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
LatinKeyboard keyboard = null;
keyboard = getKeyboard(id);
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 307338404..155e8cbba 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -2261,6 +2261,10 @@ public class LatinIME extends InputMethodService
return mWord;
}
+ boolean getPopupOn() {
+ return mPopupOn;
+ }
+
private void updateCorrectionMode() {
mHasDictionary = mSuggest != null ? mSuggest.hasMainDictionary() : false;
mAutoCorrectOn = (mAutoCorrectEnabled || mQuickFixes)