From 84341813876071eb3b7a8464c71c8c455a0fd5e5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 17 Oct 2018 18:38:06 +0200 Subject: [PATCH] use a copy of directories at search --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 414c8df12..66a9fec6f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -885,7 +885,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } catch (e: Exception) { config.everShownFolders = HashSet() } - mDirs = dirs + mDirs = dirs.clone() as ArrayList } private fun checkPlaceholderVisibility(dirs: ArrayList) {