Remove excessive call of onKeyboardLanguageChanged in SubtypeSwitcher

Change-Id: I8f85f9b053a70b8ad1755e4f343ac06ecd9e103b
main
satok 2010-11-29 20:48:10 +09:00
parent d20208361b
commit 965004fbe9
1 changed files with 1 additions and 1 deletions

View File

@ -347,12 +347,12 @@ public class SubtypeSwitcher {
if (mVoiceInput == null && vi != null) { if (mVoiceInput == null && vi != null) {
// TODO: Remove requirements to construct KeyboardSwitcher // TODO: Remove requirements to construct KeyboardSwitcher
// when IME was enabled with Voice mode // when IME was enabled with Voice mode
mService.onKeyboardLanguageChanged();
mVoiceInput = vi; mVoiceInput = vi;
if (isVoiceMode()) { if (isVoiceMode()) {
if (DBG) { if (DBG) {
Log.d(TAG, "Set and call voice input."); Log.d(TAG, "Set and call voice input.");
} }
mService.onKeyboardLanguageChanged();
mService.onKey(LatinKeyboardView.KEYCODE_VOICE, null, 0, 0); mService.onKey(LatinKeyboardView.KEYCODE_VOICE, null, 0, 0);
return true; return true;
} }