button hint if no STT
This commit is contained in:
parent
b965302c52
commit
79daaf6968
@ -78,13 +78,16 @@ class MatchActivity : AppCompatActivity() {
|
|||||||
getBooleanExtra("enableSTT", false)
|
getBooleanExtra("enableSTT", false)
|
||||||
)
|
)
|
||||||
for (player in players)
|
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) {
|
if (ttsEnabled) {
|
||||||
tts = TextToSpeech(this@MatchActivity, WaitForTtsInit())
|
tts = TextToSpeech(this@MatchActivity, WaitForTtsInit())
|
||||||
if (sttEnabled)
|
if (sttEnabled)
|
||||||
tts?.setOnUtteranceProgressListener(SttAfterTts())
|
tts?.setOnUtteranceProgressListener(SttAfterTts())
|
||||||
}
|
}
|
||||||
|
if (!sttEnabled){
|
||||||
|
showText(getString(R.string.button_hint))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateUI()
|
updateUI()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user