Merge pull request #7810 from osmandapp/Fix_7247

Fix #7247
This commit is contained in:
max-klaus 2019-10-31 17:43:51 +03:00 committed by GitHub
commit f69e77fe6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@
Thx - Hardy
-->
<string name="tts_initialization_error">Cannot initialize TTS engine</string>
<string name="layer_osm_edits">OSM Edits</string>
<string name="quick_action_contour_lines_descr">Tapping this action button shows or hides contour lines on the map</string>
<string name="quick_action_contour_lines_show">Show contour lines</string>

View file

@ -199,6 +199,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
if (status != TextToSpeech.SUCCESS) {
ttsVoiceStatus = "NO INIT SUCCESS";
internalClear();
((OsmandApplication) ctx.getApplicationContext()).showToastMessage(ctx.getString(R.string.tts_initialization_error));
} else if (mTts != null) {
speechAllowed = true;
switch (mTts.isLanguageAvailable(newLocale)) {