am 267cd015: Add special handling for "Phone number" layout.

* commit '267cd0151f038d4d1654b9cbea5066d1927dd032':
  Add special handling for "Phone number" layout.
main
Tadashi G. Takaoka 2011-12-12 01:52:53 -08:00 committed by Android Git Automerger
commit 7677399606
1 changed files with 6 additions and 0 deletions

View File

@ -139,6 +139,12 @@ public class KeyboardSwitcher implements KeyboardState.SwitchActions,
mSymbolsShiftedKeyboardId = getKeyboardId(editorInfo, true, true, settingsValues);
mState.onLoadKeyboard(mResources.getString(R.string.layout_switch_back_symbols),
hasDistinctMultitouch());
// TODO: Should get rid of this special case handling for Phone Number layouts once we
// have separate layouts with unique KeyboardIds for alphabet and alphabet-shifted
// respectively.
if (mMainKeyboardId.isPhoneKeyboard()) {
mState.onToggleAlphabetAndSymbols();
}
} catch (RuntimeException e) {
Log.w(TAG, "loading keyboard failed: " + mMainKeyboardId, e);
LatinImeLogger.logOnException(mMainKeyboardId.toString(), e);