Skip to content

Commit b0fc653

Browse files
committed
changed Locale.getDefault() occurrences for the slightly enhanced LanguageUtils.getCurrentDeviceLanguage()
1 parent 3aa9746 commit b0fc653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/GeocoderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static Geocoder getGeocoder(Context context) {
2222
Geocoder gcd;
2323

2424
try {
25-
gcd = new Geocoder(context, Locale.getDefault());
25+
gcd = new Geocoder(context, LanguageUtils.getCurrentDeviceLanguage(context));
2626
} catch (NullPointerException cannotIstantiateEx) {
2727
AppLog.e(AppLog.T.UTILS, "Cannot instantiate Geocoder", cannotIstantiateEx);
2828
return null;

0 commit comments

Comments
 (0)