am 67e08bb0: Invoke voice recognition certainly onStartInputView

* commit '67e08bb0fb922532d21e9a03c4e1627f62703935':
  Invoke voice recognition certainly onStartInputView
main
Tadashi G. Takaoka 2011-01-14 13:16:13 -08:00 committed by Android Git Automerger
commit 4a3c68a75a
1 changed files with 8 additions and 2 deletions

View File

@ -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() {