Skip to content
Snippets Groups Projects
Commit 6dd7778d authored by satok's avatar satok
Browse files

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
parent f8e67182
No related branches found
No related tags found
No related merge requests found
......@@ -793,8 +793,8 @@ public class VoiceConnector implements VoiceInput.UiListener {
public void setVoiceInput(VoiceInput voiceInput, SubtypeSwitcher switcher) {
if (mVoiceInput == null && voiceInput != null) {
mVoiceInput = voiceInput;
switcher.setVoiceInputConnector(this);
}
switcher.setVoiceInputConnector(this);
}
private VoiceInputConnector() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment