parent
e6c61c08c7
commit
ab64a7c859
|
@ -187,13 +187,16 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
|
if (mCurrentId == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
mIsAlphabetMode = isAlphabetMode();
|
mIsAlphabetMode = isAlphabetMode();
|
||||||
if (mIsAlphabetMode) {
|
if (mIsAlphabetMode) {
|
||||||
mIsShiftLocked = isShiftLocked();
|
mIsShiftLocked = isShiftLocked();
|
||||||
mIsShifted = !mIsShiftLocked && isShiftedOrShiftLocked();
|
mIsShifted = !mIsShiftLocked && isShiftedOrShiftLocked();
|
||||||
} else {
|
} else {
|
||||||
mIsShiftLocked = false;
|
mIsShiftLocked = false;
|
||||||
mIsShifted = mSymbolsShiftedKeyboardId.equals(mCurrentId);
|
mIsShifted = mCurrentId.equals(mSymbolsShiftedKeyboardId);
|
||||||
}
|
}
|
||||||
mIsValid = true;
|
mIsValid = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue