Skip to content

Commit

Permalink
Use lowercase locale array to make sure language is pre-selected
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Feb 5, 2016
1 parent 64985ea commit c8adccf
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static String removeTrailingSlash(final String str) {
return str;
}

return str.substring(0, str.length() -1);
return str.substring(0, str.length() - 1);
}

/*
Expand Down Expand Up @@ -301,4 +301,10 @@ public static long stringToLong(String s, long defaultValue) {
return defaultValue;
}
}

public static void convertArrayToLowercase(String[] array) {
for (int i = 0; i < array.length; i++) {
array[i] = array[i].toLowerCase();
}
}
}

0 comments on commit c8adccf

Please sign in to comment.