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: I42d0220e7d84a08e03f143213cc6eff87e7e79a6main
parent
f8e67182f0
commit
6dd7778d22
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue