mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #11927 from JosJuice/android-custom-file-extension-locale
Android: Check file name extensions locale-independently
This commit is contained in:
commit
8db5775a1b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user