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