Skip to content

Commit

Permalink
Fix another crash in Android 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Dec 1, 2017
1 parent a6728e6 commit d3903cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit d3903cb

Please sign in to comment.