mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-31 04:06:43 +01:00
add the slash after nomedia folders right at fetching
This commit is contained in:
parent
416f459bc5
commit
6b61883214
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
|||
|
||||
if (!isExcluded && !showHidden) {
|
||||
noMediaFolders.forEach {
|
||||
if (path.startsWith("$it/")) {
|
||||
if (path.startsWith(it)) {
|
||||
isExcluded = true
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ fun Context.getNoMediaFolders(): ArrayList<String> {
|
|||
val path = cursor.getString(cursor.getColumnIndex(MediaStore.Files.FileColumns.DATA)) ?: continue
|
||||
val noMediaFile = File(path)
|
||||
if (noMediaFile.exists())
|
||||
folders.add(noMediaFile.parent)
|
||||
folders.add("${noMediaFile.parent}/")
|
||||
} while (cursor.moveToNext())
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue