Bug: 5120674
Change-Id: Iedfd7af33a96b68d83d9a844f61ac40b9523ecdb
main
Tadashi G. Takaoka 2011-08-04 09:40:25 -07:00
parent 3234123fba
commit 94ac3d760b
1 changed files with 4 additions and 1 deletions

View File

@ -187,13 +187,16 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
}
public void save() {
if (mCurrentId == null) {
return;
}
mIsAlphabetMode = isAlphabetMode();
if (mIsAlphabetMode) {
mIsShiftLocked = isShiftLocked();
mIsShifted = !mIsShiftLocked && isShiftedOrShiftLocked();
} else {
mIsShiftLocked = false;
mIsShifted = mSymbolsShiftedKeyboardId.equals(mCurrentId);
mIsShifted = mCurrentId.equals(mSymbolsShiftedKeyboardId);
}
mIsValid = true;
}