From 617412a3bcbbf6d244169cc85b38a7584bf8e12a Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 26 Apr 2018 10:49:26 +0200 Subject: [PATCH] check invalid directories as the last thing on the new thread --- .../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 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() }