Skip to content

Commit

Permalink
avoid showing hidden items mistakenly at search, if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed May 18, 2021
1 parent 62116da commit 6b54b0e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
val isSortingBySize = sorting and SORT_BY_SIZE != 0
File(path).listFiles()?.sortedBy { it.isDirectory }?.forEach {
if (!showHidden && it.isHidden) {
return@forEach
}

if (it.isDirectory) {
if (it.name.contains(text, true)) {
val fileDirItem = getFileDirItemFromFile(it, isSortingBySize, HashMap<String, Long>(), false)
Expand Down

0 comments on commit 6b54b0e

Please sign in to comment.