Fixed the issue of popup enabled when i change to symbol keyboard.

Bug:2909517
Change-Id: I1c010b1079a04ff3b08d690c536fbe8d4414ea14
main
Yohei Fujii 2010-08-13 19:02:34 +09:00
parent 648dcf55a3
commit fda1ae71b5
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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)