This commit is contained in:
Max Lv
2016-10-13 08:45:10 +08:00
parent 158afb1d9f
commit 7370b6a0b8
@@ -146,7 +146,7 @@ class ShadowsocksApplication extends Application {
}
} else {
val newLocale = checkChineseLocale(config.locale)
if (config.locale != newLocale) {
if (newLocale != null && config.locale != newLocale) {
val newConfig = new Configuration(config)
newConfig.locale = newLocale
val res = getResources