Invoke voice recognition certainly onStartInputView

Bug: 3352347

Change-Id: I80763c0a48ebf1ecd23549d78269421ebb40d206
main
Tadashi G. Takaoka 2011-01-15 02:26:00 +09:00
parent 93e2d77741
commit 67e08bb0fb
1 changed files with 8 additions and 2 deletions

View File

@ -630,10 +630,16 @@ 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) {
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() {
// After onAttachedToWindow, we can show the voice warning dialog. See startListening()