From 54cb98139e2570915ff7031f8d87a7f7f6042290 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 13 May 2019 10:30:22 +0200 Subject: [PATCH] fix #1414, show proper root storage folder name at grouping --- .../com/simplemobiletools/gallery/pro/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,