Commit d3903cbc authored by Mygod's avatar Mygod

Fix another crash in Android 4.4

parent a6728e60
......@@ -103,7 +103,8 @@ class ShadowsocksApplication extends Application {
case "SG" => SIMPLIFIED_CHINESE
case "HK" | "MO" => TRADITIONAL_CHINESE
case _ =>
Log.w(TAG, "Unknown zh locale: %s. Falling back to zh-Hans-CN...".format(locale.toLanguageTag))
Log.w(TAG, "Unknown zh locale: %s. Falling back to zh-Hans-CN..."
.formatLocal(Locale.ENGLISH, if (Build.VERSION.SDK_INT >= 21) locale.toLanguageTag else locale))
SIMPLIFIED_CHINESE
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment