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 idmain
commit
fce5fa6148
|
@ -174,12 +174,6 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
private void loadKeyboardInternal(int mode, int imeOptions, boolean voiceButtonEnabled,
|
private void loadKeyboardInternal(int mode, int imeOptions, boolean voiceButtonEnabled,
|
||||||
boolean voiceButtonOnPrimary, boolean isSymbols) {
|
boolean voiceButtonOnPrimary, boolean isSymbols) {
|
||||||
if (mInputView == null) return;
|
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;
|
mMode = mode;
|
||||||
mImeOptions = imeOptions;
|
mImeOptions = imeOptions;
|
||||||
|
@ -188,9 +182,15 @@ public class KeyboardSwitcher implements SharedPreferences.OnSharedPreferenceCha
|
||||||
mIsSymbols = isSymbols;
|
mIsSymbols = isSymbols;
|
||||||
// Update the settings key state because number of enabled IMEs could have been changed
|
// Update the settings key state because number of enabled IMEs could have been changed
|
||||||
mHasSettingsKey = getSettingsKeyMode(mPrefs, mInputMethodService);
|
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;
|
mCurrentId = id;
|
||||||
|
mInputView.setPreviewEnabled(mInputMethodService.getPopupOn());
|
||||||
mInputView.setKeyboard(getKeyboard(id));
|
mInputView.setKeyboard(getKeyboard(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue