mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
AI 147900: Set symbols state when setting keyboard in LatinIME [bug fix for 1815418].
BUG=1815418 Automated import of CL 147900
This commit is contained in:
parent
0221514bd1
commit
c5bb4591b6
@ -115,6 +115,7 @@ public class KeyboardSwitcher {
|
|||||||
void setKeyboardMode(int mode, int imeOptions, boolean isSymbols) {
|
void setKeyboardMode(int mode, int imeOptions, boolean isSymbols) {
|
||||||
mMode = mode;
|
mMode = mode;
|
||||||
mImeOptions = imeOptions;
|
mImeOptions = imeOptions;
|
||||||
|
mIsSymbols = isSymbols;
|
||||||
mInputView.setPreviewEnabled(true);
|
mInputView.setPreviewEnabled(true);
|
||||||
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
|
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
|
||||||
LatinKeyboard keyboard = getKeyboard(id);
|
LatinKeyboard keyboard = getKeyboard(id);
|
||||||
@ -226,7 +227,6 @@ public class KeyboardSwitcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void toggleSymbols() {
|
void toggleSymbols() {
|
||||||
mIsSymbols = !mIsSymbols;
|
setKeyboardMode(mMode, mImeOptions, !mIsSymbols);
|
||||||
setKeyboardMode(mMode, mImeOptions, mIsSymbols);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user