diff options
author | 2011-12-12 01:52:53 -0800 | |
---|---|---|
committer | 2011-12-12 01:52:53 -0800 | |
commit | 76773996068eb977ca1fd0424b96c606938ad13f (patch) | |
tree | 83c5065bfc2d268b7369c714439eea97e0b76f2e | |
parent | 6c37c6539d9ca240e96b1f1211747f46cb26a47c (diff) | |
parent | 267cd0151f038d4d1654b9cbea5066d1927dd032 (diff) | |
download | latinime-76773996068eb977ca1fd0424b96c606938ad13f.tar.gz latinime-76773996068eb977ca1fd0424b96c606938ad13f.tar.xz latinime-76773996068eb977ca1fd0424b96c606938ad13f.zip |
am 267cd015: Add special handling for "Phone number" layout.
* commit '267cd0151f038d4d1654b9cbea5066d1927dd032':
Add special handling for "Phone number" layout.
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 77218d3bc..cae0edd9f 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -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); |