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 a0a4e3984..a931acfb6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -662,13 +662,13 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { mIsGettingDirs = false mLoadedInitialPhotos = true - checkInvalidDirectories(dirs, directoryDao) runOnUiThread { directories_refresh_layout.isRefreshing = false directories_vertical_fastscroller.measureRecyclerView() checkPlaceholderVisibility(dirs) } + checkInvalidDirectories(dirs, directoryDao) }.start() }