diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index b4945d510..61929cd39 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -274,7 +274,7 @@ fun Context.getDirectParentSubfolders(dirs: ArrayList, currentPathPre val directory = Directory(newDirId++, parent, subDirs.first().tmb, - parent.getFilenameFromPath(), + getFolderNameFromPath(parent), subDirs.sumBy { it.mediaCnt }, lastModified, dateTaken,