try fixing a ConcurrentModificationException at loading directories

This commit is contained in:
tibbi 2018-12-26 19:56:11 +01:00
parent aa946ad173
commit a608ce2d6e
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFolders == VIEW_TYPE_GRID
directories_vertical_fastscroller.beVisibleIf(directories_grid.isVisible() && !allowHorizontalScroll)
directories_horizontal_fastscroller.beVisibleIf(directories_grid.isVisible() && allowHorizontalScroll)
setupAdapter(dirs)
setupAdapter(dirs.clone() as ArrayList<Directory>)
}
// cached folders have been loaded, recheck folders one by one starting with the first displayed