summaryrefslogtreecommitdiff
path: root/vdrmanager/src
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager/src')
-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);