Skip to content

Commit 84b0737

Browse files
committed
apply search to any part of file strings, not just the start
1 parent 9d3f7f8 commit 84b0737

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
302302
if (it.isDirectory) {
303303
files.addAll(searchFiles(text, it.absolutePath))
304304
} else {
305-
if (it.name.startsWith(text, true)) {
305+
if (it.name.contains(text, true)) {
306306
val fileDirItem = getFileDirItemFromFile(it, isSortingBySize)
307307
if (fileDirItem != null) {
308308
files.add(fileDirItem)

0 commit comments

Comments
 (0)