avoid showing hidden items mistakenly at search, if disabled
This commit is contained in:
parent
62116da023
commit
6b54b0e450
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue