button hint if no STT
This commit is contained in:
parent
b965302c52
commit
79daaf6968
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user