Merge pull request #11927 from JosJuice/android-custom-file-extension-locale

Android: Check file name extensions locale-independently
This commit is contained in:
Charles Lombardo 2023-06-11 16:52:50 -04:00 committed by GitHub
commit 8db5775a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {