Skip to content

Commit 366d238

Browse files
committed
fix: trust the system to check whether a file is a directory
Originally introduced in 12b96e1 Refs: #80
1 parent 666c8d8 commit 366d238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class ItemsFragment(context: Context, attributeSet: AttributeSet) : MyViewPagerF
257257
}
258258

259259
var lastModified = lastModifieds.remove(curPath)
260-
val isDirectory = if (lastModified != null) false else file.isDirectory
260+
val isDirectory = file.isDirectory
261261
val children = if (isDirectory && getProperChildCount) file.getDirectChildrenCount(context, showHidden) else 0
262262
val size = if (isDirectory) {
263263
if (isSortingBySize) {

0 commit comments

Comments
 (0)