diff options
author | 2011-01-14 13:18:19 -0800 | |
---|---|---|
committer | 2011-01-14 13:18:19 -0800 | |
commit | 50585b69bff1052e0e28c48dfd2aeee3b34175c0 (patch) | |
tree | dc592974c981fdad9bf1b37d15304207c9d6fec9 /java/src | |
parent | 60166feb29f58b056361f52b9b93239a47cbde55 (diff) | |
parent | 4a3c68a75a141ecbc3302843597497c7f7d3ad95 (diff) | |
download | latinime-50585b69bff1052e0e28c48dfd2aeee3b34175c0.tar.gz latinime-50585b69bff1052e0e28c48dfd2aeee3b34175c0.tar.xz latinime-50585b69bff1052e0e28c48dfd2aeee3b34175c0.zip |
am 4a3c68a7: am 67e08bb0: Invoke voice recognition certainly onStartInputView
* commit '4a3c68a75a141ecbc3302843597497c7f7d3ad95':
Invoke voice recognition certainly onStartInputView
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/voice/VoiceIMEConnector.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/voice/VoiceIMEConnector.java b/java/src/com/android/inputmethod/voice/VoiceIMEConnector.java index d9528eb40..1ac4391f1 100644 --- a/java/src/com/android/inputmethod/voice/VoiceIMEConnector.java +++ b/java/src/com/android/inputmethod/voice/VoiceIMEConnector.java @@ -630,9 +630,15 @@ public class VoiceIMEConnector implements VoiceInput.UiListener { public void onStartInputView(IBinder token) { // If IME is in voice mode, but still needs to show the voice warning dialog, // keep showing the warning. - if (mSubtypeSwitcher.isVoiceMode() && needsToShowWarningDialog() && token != null) { - showVoiceWarningDialog(false, token, false); + if (mSubtypeSwitcher.isVoiceMode() && token != null) { + if (needsToShowWarningDialog()) { + showVoiceWarningDialog(false, token, false); + } else { + startListening(false, token, false); + } } + // If we have no token, onAttachedToWindow will take care of showing dialog and start + // listening. } public void onAttachedToWindow() { |