Merge branch 'readonly-p4-donut' into donut

This commit is contained in:
Brandon Ballinger 2009-04-28 11:40:37 -07:00 committed by The Android Open Source Project
commit 9ebffd93f6

View file

@ -115,6 +115,7 @@ public class KeyboardSwitcher {
void setKeyboardMode(int mode, int imeOptions, boolean isSymbols) {
mMode = mode;
mImeOptions = imeOptions;
mIsSymbols = isSymbols;
mInputView.setPreviewEnabled(true);
KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols);
LatinKeyboard keyboard = getKeyboard(id);
@ -226,7 +227,6 @@ public class KeyboardSwitcher {
}
void toggleSymbols() {
mIsSymbols = !mIsSymbols;
setKeyboardMode(mMode, mImeOptions, mIsSymbols);
setKeyboardMode(mMode, mImeOptions, !mIsSymbols);
}
}