mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
avoid showing hidden items mistakenly at search, if disabled
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user