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 a40906bbe..eab222979 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 @@ -984,7 +984,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } }.apply { setupZoomListener(mZoomListener) - directories_grid.adapter = this + runOnUiThread { + directories_grid.adapter = this + } } measureRecyclerViewContent(dirsToShow) setupScrollDirection()