mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02: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