mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-19 06:48:00 +01:00
fix #683, make nomedia file checking more precise
This commit is contained in:
parent
3949db6583
commit
8a0dd4592b
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ fun Context.getNoMediaFolders(callback: (folders: ArrayList<String>) -> Unit) {
|
||||||
do {
|
do {
|
||||||
val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA) ?: continue
|
val path = cursor.getStringValue(MediaStore.Files.FileColumns.DATA) ?: continue
|
||||||
val noMediaFile = File(path)
|
val noMediaFile = File(path)
|
||||||
if (noMediaFile.exists()) {
|
if (noMediaFile.exists() && noMediaFile.name == NOMEDIA) {
|
||||||
folders.add("${noMediaFile.parent}/")
|
folders.add("${noMediaFile.parent}/")
|
||||||
}
|
}
|
||||||
} while (cursor.moveToNext())
|
} while (cursor.moveToNext())
|
||||||
|
|
Loading…
Reference in a new issue