package net.somethingdreadful.MAL;

import org.holoeverywhere.ThemeManager;
import org.holoeverywhere.app.Application;

public class Theme extends Application {
    static {
        ThemeManager.setDefaultTheme(ThemeManager.MIXED);
    }
}

@@ -29,16 +29,59 @@
 l.MAL;%0A%0A
+import android.content.res.Configuration;%0A%0A
 import o
@@ -156,16 +156,42 @@
 ation;%0A%0A
+import java.util.Locale;%0A%0A
 public c
@@ -223,16 +223,723 @@
 ation %7B%0A
+    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A        PrefManager Prefs = new PrefManager(getApplicationContext());%0A        String localeName = Prefs.getlocale();%0A        Locale locale;%0A        if (localeName.equals(%22pt-br%22))%0A            locale = new Locale(%22pt%22, %22PT%22);%0A        else if (localeName.equals(%22pt-pt%22))%0A            locale = new Locale(%22pt%22, %22BR%22);%0A        else%0A            locale = new Locale(Prefs.getlocale());%0A        Locale.setDefault(locale);%0A%0A        Configuration newConfig = new Configuration();%0A        newConfig.locale = locale;%0A        getBaseContext().getResources().updateConfiguration(newConfig, getBaseContext().getResources().getDisplayMetrics());%0A    %7D%0A%0A
     stat

Fix language revert after boot (Language)