mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '4a3c68a75a141ecbc3302843597497c7f7d3ad95': Invoke voice recognition certainly onStartInputView
This commit is contained in:
commit
50585b69bf
@ -630,10 +630,16 @@ public class VoiceIMEConnector implements VoiceInput.UiListener {
|
|||||||
public void onStartInputView(IBinder token) {
|
public void onStartInputView(IBinder token) {
|
||||||
// If IME is in voice mode, but still needs to show the voice warning dialog,
|
// If IME is in voice mode, but still needs to show the voice warning dialog,
|
||||||
// keep showing the warning.
|
// keep showing the warning.
|
||||||
if (mSubtypeSwitcher.isVoiceMode() && needsToShowWarningDialog() && token != null) {
|
if (mSubtypeSwitcher.isVoiceMode() && token != null) {
|
||||||
|
if (needsToShowWarningDialog()) {
|
||||||
showVoiceWarningDialog(false, token, false);
|
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() {
|
public void onAttachedToWindow() {
|
||||||
// After onAttachedToWindow, we can show the voice warning dialog. See startListening()
|
// After onAttachedToWindow, we can show the voice warning dialog. See startListening()
|
||||||
|
Loading…
Reference in New Issue
Block a user