From a608ce2d6ec423bea9c1057e6258859899c8a695 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 26 Dec 2018 19:56:11 +0100 Subject: [PATCH] try fixing a ConcurrentModificationException at loading directories --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index fd2d67c33..58701c6ce 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -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) } // cached folders have been loaded, recheck folders one by one starting with the first displayed