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 ce85caaa2..ffc071dcd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -323,8 +323,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { config.viewTypeFolders = it as Int invalidateOptionsMenu() setupLayoutManager() + val dirs = getCurrentlyDisplayedDirs() directories_grid.adapter = null - setupAdapter(getCurrentlyDisplayedDirs()) + setupAdapter(dirs) } }