Bug: 5120674
Change-Id: Iedfd7af33a96b68d83d9a844f61ac40b9523ecdb
main
Tadashi G. Takaoka 2011-08-04 09:40:25 -07:00 committed by The Android Automerger
parent e6c61c08c7
commit ab64a7c859
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;
}