Skip to content

Commit c8adccf

Browse files
committed
Use lowercase locale array to make sure language is pre-selected
1 parent 64985ea commit c8adccf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static String removeTrailingSlash(final String str) {
186186
return str;
187187
}
188188

189-
return str.substring(0, str.length() -1);
189+
return str.substring(0, str.length() - 1);
190190
}
191191

192192
/*
@@ -301,4 +301,10 @@ public static long stringToLong(String s, long defaultValue) {
301301
return defaultValue;
302302
}
303303
}
304+
305+
public static void convertArrayToLowercase(String[] array) {
306+
for (int i = 0; i < array.length; i++) {
307+
array[i] = array[i].toLowerCase();
308+
}
309+
}
304310
}

0 commit comments

Comments
 (0)