From c13bedbfa8c655fa11c5081aab6d2e7352d89e28 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 17 Apr 2018 15:51:23 +0200 Subject: [PATCH] lets obtain the file name with the built in way --- .../simplemobiletools/filemanager/fragments/ItemsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt index a527215d..06ebe705 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/fragments/ItemsFragment.kt @@ -199,7 +199,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb if (files != null) { for (file in files) { val curPath = file.absolutePath - val curName = curPath.getFilenameFromPath() + val curName = file.name if (!showHidden && curName.startsWith(".")) { continue }