forked from upstream-mirrors/quik
fix bug in speech recogniser available check
This commit is contained in:
@@ -676,7 +676,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun startSpeechRecognition() {
|
override fun startSpeechRecognition() {
|
||||||
if (!isSpeechRecognitionAvailable()) {
|
if (isSpeechRecognitionAvailable()) {
|
||||||
val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH).apply {
|
val intent = Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH).apply {
|
||||||
putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM)
|
putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user