am bc56e044: Reset keyboard state when loading keyboard
* commit 'bc56e0442586ecfcbd18cbdd138996b17ea79b6b': Reset keyboard state when loading keyboardmain
commit
b8185a7ec2
|
@ -205,6 +205,7 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
mMainKeyboardId = getKeyboardId(editorInfo, false, false, settingsValues);
|
mMainKeyboardId = getKeyboardId(editorInfo, false, false, settingsValues);
|
||||||
mSymbolsKeyboardId = getKeyboardId(editorInfo, true, false, settingsValues);
|
mSymbolsKeyboardId = getKeyboardId(editorInfo, true, false, settingsValues);
|
||||||
mSymbolsShiftedKeyboardId = getKeyboardId(editorInfo, true, true, settingsValues);
|
mSymbolsShiftedKeyboardId = getKeyboardId(editorInfo, true, true, settingsValues);
|
||||||
|
mState.onLoadKeyboard();
|
||||||
mLayoutSwitchBackSymbols = mResources.getString(R.string.layout_switch_back_symbols);
|
mLayoutSwitchBackSymbols = mResources.getString(R.string.layout_switch_back_symbols);
|
||||||
setKeyboard(getKeyboard(mSavedKeyboardState.getKeyboardId()));
|
setKeyboard(getKeyboard(mSavedKeyboardState.getKeyboardId()));
|
||||||
mSavedKeyboardState.restore();
|
mSavedKeyboardState.restore();
|
||||||
|
|
|
@ -27,6 +27,13 @@ public class KeyboardState {
|
||||||
public KeyboardState() {
|
public KeyboardState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onLoadKeyboard() {
|
||||||
|
mKeyboardShiftState.setShifted(false);
|
||||||
|
mKeyboardShiftState.setShiftLocked(false);
|
||||||
|
mShiftKeyState.onRelease();
|
||||||
|
mSymbolKeyState.onRelease();
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isShiftLocked() {
|
public boolean isShiftLocked() {
|
||||||
return mKeyboardShiftState.isShiftLocked();
|
return mKeyboardShiftState.isShiftLocked();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue