Change catchphrase to "point %s"

This commit is contained in:
adrienmalin
2018-12-15 16:19:46 +01:00
parent 9942cbdcd6
commit 1fa8ea1f0b
4 changed files with 9 additions and 7 deletions

View File

@ -11,6 +11,7 @@ import android.speech.RecognitionListener
import android.speech.RecognizerIntent
import android.speech.SpeechRecognizer
import android.support.v4.app.DialogFragment
import android.util.Log
import android.view.LayoutInflater
import android.widget.ImageView
import android.widget.TextView
@ -109,6 +110,7 @@ class SttDialog : DialogFragment() {
stt = SpeechRecognizer.createSpeechRecognizer(activity).apply {
setRecognitionListener(SttListener())
try {
stopListening()
startListening(sttIntent)
} catch (e: ActivityNotFoundException) {
sttEnabled = false