Fixed the issue of popup enabled when i change to symbol keyboard.
Bug:2909517 Change-Id: I1c010b1079a04ff3b08d690c536fbe8d4414ea14
This commit is contained in:
parent
648dcf55a3
commit
fda1ae71b5
2 changed files with 5 additions and 1 deletions
|
@ -230,7 +230,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
}
|
}
|
||||||
mIsSymbols = isSymbols;
|
mIsSymbols = isSymbols;
|
||||||
|
|
||||||
mInputView.setPreviewEnabled(true);
|
mInputView.setPreviewEnabled(mInputMethodService.getPopupOn());
|
||||||
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
|
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
|
||||||
LatinKeyboard keyboard = null;
|
LatinKeyboard keyboard = null;
|
||||||
keyboard = getKeyboard(id);
|
keyboard = getKeyboard(id);
|
||||||
|
|
|
@ -2261,6 +2261,10 @@ public class LatinIME extends InputMethodService
|
||||||
return mWord;
|
return mWord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean getPopupOn() {
|
||||||
|
return mPopupOn;
|
||||||
|
}
|
||||||
|
|
||||||
private void updateCorrectionMode() {
|
private void updateCorrectionMode() {
|
||||||
mHasDictionary = mSuggest != null ? mSuggest.hasMainDictionary() : false;
|
mHasDictionary = mSuggest != null ? mSuggest.hasMainDictionary() : false;
|
||||||
mAutoCorrectOn = (mAutoCorrectEnabled || mQuickFixes)
|
mAutoCorrectOn = (mAutoCorrectEnabled || mQuickFixes)
|
||||||
|
|
Loading…
Reference in a new issue