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
This commit is contained in:
parent
f8e67182f0
commit
6dd7778d22
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue