Remove excessive call of onKeyboardLanguageChanged in SubtypeSwitcher
Change-Id: I8f85f9b053a70b8ad1755e4f343ac06ecd9e103bmain
parent
d20208361b
commit
965004fbe9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue