From fd7d2819b897b9516d41680a2cb873c82d934164 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 20 Dec 2016 13:41:58 +0100 Subject: [PATCH] fix NoClassDefFoundError --- OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java index 6cf51a06f9..1d199ecdda 100644 --- a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java @@ -26,7 +26,6 @@ import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; -import java.util.Locale.Builder; public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { @@ -170,7 +169,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { //#3344: Try Locale builder instead of constructor //final Locale newLocale = new Locale(language); final String[] languageFields = language.split("\\_"); - final Locale newLocale = new Builder().setLanguage("languageFields[0]").setScript("").setRegion("languageFields[1]").build(); + final Locale newLocale = new Locale.Builder().setLanguage("languageFields[0]").setScript("").setRegion("languageFields[1]").build(); mTts = new TextToSpeech(ctx, new OnInitListener() { @Override