mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
remove a slash trimming function at folder getter
This commit is contained in:
parent
640ff05e20
commit
547e6bd48a
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class MediaFetcher(val context: Context) {
|
|||
if (cursor.moveToFirst()) {
|
||||
do {
|
||||
val path = cursor.getStringValue(MediaStore.Images.Media.DATA)
|
||||
val parentPath = File(path).parent?.trimEnd('/') ?: continue
|
||||
val parentPath = File(path).parent ?: continue
|
||||
if (!includedFolders.contains(parentPath) && !foldersToIgnore.contains(parentPath)) {
|
||||
foldersToScan.add(parentPath)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue