apply search to any part of file strings, not just the start

This commit is contained in:
tibbi 2019-03-27 18:04:44 +01:00
parent 9d3f7f87ab
commit 84b0737882
1 changed files with 1 additions and 1 deletions

View File

@ -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)