diff --git a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt index ccbd1a7861..a1135c6790 100644 --- a/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt +++ b/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/searchfilesystem/DeepSearch.kt @@ -74,10 +74,11 @@ class DeepSearch( ) ) // level 2 - if (!isMatchesEnabled) searchRegExFind(file, pattern) else searchRegExMatch( - file, - pattern - ) + if (!isMatchesEnabled) { + searchRegExFind(file, pattern) + } else { + searchRegExMatch(file, pattern) + } } } @@ -175,7 +176,7 @@ class DeepSearch( } fun interface SearchFilter { - /** Returns if the file with [fileName] as name should fulfills some predicate */ + /** Returns if the file with the given [fileName] fulfills some predicate */ fun searchFilter(fileName: String): Boolean } } diff --git a/app/src/main/java/com/amaze/filemanager/ui/activities/MainActivityViewModel.kt b/app/src/main/java/com/amaze/filemanager/ui/activities/MainActivityViewModel.kt index 4aa825d18b..edf2505617 100644 --- a/app/src/main/java/com/amaze/filemanager/ui/activities/MainActivityViewModel.kt +++ b/app/src/main/java/com/amaze/filemanager/ui/activities/MainActivityViewModel.kt @@ -189,7 +189,7 @@ class MainActivityViewModel(val applicationContext: Application) : } /** - * Perform deep search: recursively search for + * Perform deep search: search recursively for files matching [query] in the current path */ fun deepSearch( mainActivity: MainActivity,