aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-07-11 18:16:14 -0700
committerTadashi G. Takaoka <takaoka@google.com>2011-07-11 18:16:14 -0700
commit8ebbe03fed22da197fcdf152df8b815d9d816ac2 (patch)
tree28f329a59452510a51f8c7ace40dc8ab3818770a /java/src
parent08eea9565074d683cc0e94a3652ec4a99eebb01f (diff)
downloadlatinime-8ebbe03fed22da197fcdf152df8b815d9d816ac2.tar.gz
latinime-8ebbe03fed22da197fcdf152df8b815d9d816ac2.tar.xz
latinime-8ebbe03fed22da197fcdf152df8b815d9d816ac2.zip
Keep keyboard layout while orientation change
This change can retain symbols layout only, can't retain shift or shift lock state of the keyboard. Bug: 4311428 Change-Id: I6248ed9a6d762e1ca4b72e391fdca9bc9f55ac35
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
index 7ad947c67..bb21d7a63 100644
--- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
+++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java
@@ -152,7 +152,8 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
boolean voiceButtonOnPrimary) {
mSwitchState = SWITCH_STATE_ALPHA;
try {
- loadKeyboardInternal(attribute, voiceKeyEnabled, voiceButtonOnPrimary, false);
+ final boolean isSymbols = (mCurrentId != null) ? mCurrentId.isSymbolsKeyboard() : false;
+ loadKeyboardInternal(attribute, voiceKeyEnabled, voiceButtonOnPrimary, isSymbols);
} catch (RuntimeException e) {
// Get KeyboardId to record which keyboard has been failed to load.
final KeyboardId id = getKeyboardId(attribute, false);