From 5e3faf42847563ce058b73a80efeaecf89613355 Mon Sep 17 00:00:00 2001 From: lado Date: Tue, 1 Nov 2011 23:03:56 +0100 Subject: fix with wrong formated numbers --- vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'vdrmanager') diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java b/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java index 9f4151f..259a894 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java @@ -680,13 +680,10 @@ public class Preferences { */ public static void setLocale(final Context context) { String lc = getString(context, R.string.gui_custom_locale_key, DEFAULT_LANGUAGE_VALUE); - Locale locale; - if(lc.equals(DEFAULT_LANGUAGE_VALUE) == false){ - locale = new Locale(lc); - } else { - locale = new Locale(""); + if(lc.equals(DEFAULT_LANGUAGE_VALUE)){ + return; } - Locale.setDefault(locale); + Locale locale = new Locale(lc); final Configuration config = new Configuration(); config.locale = locale; context.getResources().updateConfiguration(config, null); -- cgit v1.2.3