adding a crashfix
This commit is contained in:
parent
5ee0dafa6b
commit
de93f49ae8
|
@ -191,11 +191,11 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
||||||
|
|
||||||
private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
|
private fun getRegularItemsOf(path: String, callback: (originalPath: String, items: ArrayList<FileDirItem>) -> Unit) {
|
||||||
val items = ArrayList<FileDirItem>()
|
val items = ArrayList<FileDirItem>()
|
||||||
|
val files = File(path).listFiles()?.filterNotNull()
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
callback(path, items)
|
callback(path, items)
|
||||||
}
|
}
|
||||||
|
|
||||||
val files = File(path).listFiles()?.filterNotNull()
|
|
||||||
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
||||||
if (files != null) {
|
if (files != null) {
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
|
|
Loading…
Reference in New Issue