diff options
author | 2011-01-17 05:01:38 -0800 | |
---|---|---|
committer | 2011-01-17 05:01:38 -0800 | |
commit | 9a0c717bec9769db04a0079b5f9540a184decfa4 (patch) | |
tree | b51bea2a3483cc30823a69ca8f596ddeeefd874f /java/src/com/android/inputmethod | |
parent | b3d2b4d2e96ae6676daadf42f8dea5c1dc52a557 (diff) | |
parent | fce5fa6148172136cdb4d979da1c76db5628fee5 (diff) | |
download | latinime-9a0c717bec9769db04a0079b5f9540a184decfa4.tar.gz latinime-9a0c717bec9769db04a0079b5f9540a184decfa4.tar.xz latinime-9a0c717bec9769db04a0079b5f9540a184decfa4.zip |
am fce5fa61: am 8cc6e8e5: Merge "Fix voice key enable status has not been reflected to keyboard id" into honeycomb
* commit 'fce5fa6148172136cdb4d979da1c76db5628fee5':
Fix voice key enable status has not been reflected to keyboard id
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java index 25ef847cd..42af8a8d6 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardSwitcher.java @@ -174,12 +174,6 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha private void loadKeyboardInternal(int mode, int imeOptions, boolean voiceButtonEnabled, boolean voiceButtonOnPrimary, boolean isSymbols) { if (mInputView == null) return; - final Keyboard oldKeyboard = mInputView.getKeyboard(); - final KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols); - if (oldKeyboard != null && oldKeyboard.mId.equals(id)) - return; - - mInputView.setPreviewEnabled(mInputMethodService.getPopupOn()); mMode = mode; mImeOptions = imeOptions; @@ -188,9 +182,15 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha mIsSymbols = isSymbols; // Update the settings key state because number of enabled IMEs could have been changed mHasSettingsKey = getSettingsKeyMode(mPrefs, mInputMethodService); - makeSymbolsKeyboardIds(); + final KeyboardId id = getKeyboardId(mode, imeOptions, isSymbols); + final Keyboard oldKeyboard = mInputView.getKeyboard(); + if (oldKeyboard != null && oldKeyboard.mId.equals(id)) + return; + + makeSymbolsKeyboardIds(); mCurrentId = id; + mInputView.setPreviewEnabled(mInputMethodService.getPopupOn()); mInputView.setKeyboard(getKeyboard(id)); } |