Android: Check file name extensions locale-independently

A very minor bug that became more obvious when this code was translated
to Kotlin.
This commit is contained in:
JosJuice 2023-06-11 19:03:49 +02:00
parent bcd6e2e6dc
commit fee86e8536
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class CustomFilePickerFragment : FilePickerFragment() {
// files if the files don't show up in the file picker when mode == MODE_DIR.
// To avoid this, show files even when the user needs to select a directory.
return (showHiddenItems || !file.isHidden) &&
(file.isDirectory || extensions!!.contains(fileExtension(file.name).lowercase(Locale.getDefault())))
(file.isDirectory || extensions!!.contains(fileExtension(file.name).lowercase(Locale.ENGLISH)))
}
override fun isCheckable(file: File): Boolean {