summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-11-01 23:03:56 +0100
committerlado <herrlado@gmail.com>2011-11-01 23:03:56 +0100
commit5e3faf42847563ce058b73a80efeaecf89613355 (patch)
tree2f3afe5e6e5f7ee006a9643f386c455542bf3463
parent58df33465bd915f924c643ff461ae186743dbbda (diff)
downloadvdr-manager-5e3faf42847563ce058b73a80efeaecf89613355.tar.gz
vdr-manager-5e3faf42847563ce058b73a80efeaecf89613355.tar.bz2
fix with wrong formated numbers
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/data/Preferences.java9
1 files changed, 3 insertions, 6 deletions
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);