Update TTSCommandPlayerImpl.java

This commit is contained in:
Hardy 2020-11-07 22:39:54 +01:00 committed by GitHub
parent d763ea837a
commit 2f804daf25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {