Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {