From 2937b403e61fb7ad86fe4e652fbb3df2d994e3a5 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 25 Jun 2011 16:39:26 +0200 Subject: [PATCH] Remove None from voice files --- OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java index 59fd0f6b91..372b133997 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java @@ -217,10 +217,10 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference registerListPreference(osmandSettings.PREFERRED_LOCALE, screen, entries, entrieValues); Set voiceFiles = getVoiceFiles(); - entries = new String[voiceFiles.size() + 2]; - entrieValues = new String[voiceFiles.size() + 2]; + entries = new String[voiceFiles.size() + 1]; + entrieValues = new String[voiceFiles.size() + 1]; int k = 0; - entries[k++] = getString(R.string.voice_not_specified); +// entries[k++] = getString(R.string.voice_not_specified); entrieValues[k] = OsmandSettings.VOICE_PROVIDER_NOT_USE; entries[k++] = getString(R.string.voice_not_use); for (String s : voiceFiles) {