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) {
|
if (it.isDirectory) {
|
||||||
files.addAll(searchFiles(text, it.absolutePath))
|
files.addAll(searchFiles(text, it.absolutePath))
|
||||||
} else {
|
} else {
|
||||||
if (it.name.startsWith(text, true)) {
|
if (it.name.contains(text, true)) {
|
||||||
val fileDirItem = getFileDirItemFromFile(it, isSortingBySize)
|
val fileDirItem = getFileDirItemFromFile(it, isSortingBySize)
|
||||||
if (fileDirItem != null) {
|
if (fileDirItem != null) {
|
||||||
files.add(fileDirItem)
|
files.add(fileDirItem)
|
||||||
|
|
Loading…
Reference in New Issue