check invalid directories as the last thing on the new thread

This commit is contained in:
tibbi 2018-04-26 10:49:26 +02:00
parent bb943daf38
commit 617412a3bc

View file

@ -662,13 +662,13 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
mIsGettingDirs = false mIsGettingDirs = false
mLoadedInitialPhotos = true mLoadedInitialPhotos = true
checkInvalidDirectories(dirs, directoryDao)
runOnUiThread { runOnUiThread {
directories_refresh_layout.isRefreshing = false directories_refresh_layout.isRefreshing = false
directories_vertical_fastscroller.measureRecyclerView() directories_vertical_fastscroller.measureRecyclerView()
checkPlaceholderVisibility(dirs) checkPlaceholderVisibility(dirs)
} }
checkInvalidDirectories(dirs, directoryDao)
}.start() }.start()
} }