button hint if no STT

This commit is contained in:
adrienmalin 2018-12-06 18:05:53 +01:00
parent b965302c52
commit 79daaf6968

View File

@ -78,13 +78,16 @@ class MatchActivity : AppCompatActivity() {
getBooleanExtra("enableSTT", false)
)
for (player in players)
player.pattern = Pattern.compile(this@MatchActivity.getString(R.string.pattern, player.name))
player.pattern = Pattern.compile(getString(R.string.pattern, player.name))
}
if (ttsEnabled) {
tts = TextToSpeech(this@MatchActivity, WaitForTtsInit())
if (sttEnabled)
tts?.setOnUtteranceProgressListener(SttAfterTts())
}
if (!sttEnabled){
showText(getString(R.string.button_hint))
}
}
}
updateUI()