remove a slash trimming function at folder getter

This commit is contained in:
tibbi 2019-05-09 12:27:46 +02:00
parent 640ff05e20
commit 547e6bd48a

View file

@ -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)
}