Fix a bug that Voice IME is not triggered properly.

Background:
Both SubtypeSwitcher and VoiceConnector have an instance of VoiceInput.
And VoiceConnector has a responsivity for setting VoiceInput to SubtypeSwitcher.
But in case that VoiceInputConnector already has an instance of VoiceInput
VoiceInputConnector doesn't set VoiceInput to SubtypeSwitcher.

Change-Id: I42d0220e7d84a08e03f143213cc6eff87e7e79a6
main
satok 2011-03-23 12:59:58 -07:00
parent f8e67182f0
commit 6dd7778d22
1 changed files with 1 additions and 1 deletions

View File

@ -793,8 +793,8 @@ public class VoiceConnector implements VoiceInput.UiListener {
public void setVoiceInput(VoiceInput voiceInput, SubtypeSwitcher switcher) { public void setVoiceInput(VoiceInput voiceInput, SubtypeSwitcher switcher) {
if (mVoiceInput == null && voiceInput != null) { if (mVoiceInput == null && voiceInput != null) {
mVoiceInput = voiceInput; mVoiceInput = voiceInput;
switcher.setVoiceInputConnector(this);
} }
switcher.setVoiceInputConnector(this);
} }
private VoiceInputConnector() { private VoiceInputConnector() {