diff options
author | 2011-01-17 04:59:44 -0800 | |
---|---|---|
committer | 2011-01-17 04:59:44 -0800 | |
commit | fce5fa6148172136cdb4d979da1c76db5628fee5 (patch) | |
tree | b51bea2a3483cc30823a69ca8f596ddeeefd874f /java/src/com/android | |
parent | 6a6a4019b84706456969f63476b1bcaf547362fb (diff) | |
parent | 8cc6e8e5c3d9028d33256c0add7ecbb4cd9270b3 (diff) | |
download | latinime-fce5fa6148172136cdb4d979da1c76db5628fee5.tar.gz latinime-fce5fa6148172136cdb4d979da1c76db5628fee5.tar.xz latinime-fce5fa6148172136cdb4d979da1c76db5628fee5.zip |
am 8cc6e8e5: Merge "Fix voice key enable status has not been reflected to keyboard id" into honeycomb
* commit '8cc6e8e5c3d9028d33256c0add7ecbb4cd9270b3':
Fix voice key enable status has not been reflected to keyboard id
Diffstat (limited to 'java/src/com/android')
-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)); } |