diff --git a/CHANGELOG.md b/CHANGELOG.md index d68bf98d..5b0bc506 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Fixed +- Fixed folders showing up incorrectly as files in some cases ([#80]) ## [1.2.2] - 2025-09-01 ### Changed @@ -58,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#27]: https://github.com/FossifyOrg/File-Manager/issues/27 [#37]: https://github.com/FossifyOrg/File-Manager/issues/37 +[#80]: https://github.com/FossifyOrg/File-Manager/issues/80 [#105]: https://github.com/FossifyOrg/File-Manager/issues/105 [#106]: https://github.com/FossifyOrg/File-Manager/issues/106 [#120]: https://github.com/FossifyOrg/File-Manager/issues/120 diff --git a/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt b/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt index fedf34e6..02a2b8e0 100644 --- a/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt +++ b/app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt @@ -257,7 +257,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF } var lastModified = lastModifieds.remove(curPath) - val isDirectory = if (lastModified != null) false else file.isDirectory + val isDirectory = file.isDirectory val children = if (isDirectory && getProperChildCount) file.getDirectChildrenCount(context, showHidden) else 0 val size = if (isDirectory) { if (isSortingBySize) {