adding some crashfixes
This commit is contained in:
parent
89c1414165
commit
a0b6e97f62
1 changed files with 2 additions and 2 deletions
|
@ -718,7 +718,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ignored: ConcurrentModificationException) {
|
} catch (ignored: Exception) {
|
||||||
}
|
}
|
||||||
|
|
||||||
val foldersToScan = mediaFetcher.getFoldersToScan()
|
val foldersToScan = mediaFetcher.getFoldersToScan()
|
||||||
|
@ -776,7 +776,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
||||||
sortedDirs = sortedDirs.distinctBy { it.path.getDistinctPath() } as ArrayList<Directory>
|
sortedDirs = sortedDirs.distinctBy { it.path.getDistinctPath() } as ArrayList<Directory>
|
||||||
|
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
(directories_grid.adapter as DirectoryAdapter).updateDirs(sortedDirs)
|
(directories_grid.adapter as? DirectoryAdapter)?.updateDirs(sortedDirs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue