mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-04-04 22:54:09 -04:00
adding a context check
This commit is contained in:
@@ -312,6 +312,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
||||
|
||||
private fun searchFiles(text: String, path: String): ArrayList<ListItem> {
|
||||
val files = ArrayList<ListItem>()
|
||||
if (context == null) {
|
||||
return files
|
||||
}
|
||||
|
||||
val sorting = context!!.config.getFolderSorting(path)
|
||||
FileDirItem.sorting = context!!.config.getFolderSorting(currentPath)
|
||||
val isSortingBySize = sorting and SORT_BY_SIZE != 0
|
||||
|
||||
Reference in New Issue
Block a user