From 2f804daf25722cdbfaeb5e06ac5488cb0817ba81 Mon Sep 17 00:00:00 2001 From: Hardy Date: Sat, 7 Nov 2020 22:39:54 +0100 Subject: [PATCH] Update TTSCommandPlayerImpl.java --- OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java index 8ad6f65f30..01f74ce763 100644 --- a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java @@ -205,7 +205,8 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { } } // Locale constructor supports 'language, region, variant' - Locale newLocale0 = new Locale(lsplit[0], lregion, lvariant); + //Locale newLocale0 = new Locale(lsplit[0], lregion, lvariant); //Setting variant here seems to cause errors on some systems + Locale newLocale0 = new Locale(lsplit[0], lregion); // #3344: Try Locale builder instead (only available from API 21), also supports script (we support as 4 letters) if (android.os.Build.VERSION.SDK_INT >= 21) { try {