apply search to any part of file strings, not just the start
This commit is contained in:
parent
9d3f7f87ab
commit
84b0737882
|
@ -302,7 +302,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||
if (it.isDirectory) {
|
||||
files.addAll(searchFiles(text, it.absolutePath))
|
||||
} else {
|
||||
if (it.name.startsWith(text, true)) {
|
||||
if (it.name.contains(text, true)) {
|
||||
val fileDirItem = getFileDirItemFromFile(it, isSortingBySize)
|
||||
if (fileDirItem != null) {
|
||||
files.add(fileDirItem)
|
||||
|
|
Loading…
Reference in New Issue