diff --git a/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/view/FolderListFragment.kt b/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/view/FolderListFragment.kt index a33e68c5..32719e32 100644 --- a/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/view/FolderListFragment.kt +++ b/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/view/FolderListFragment.kt @@ -236,15 +236,7 @@ class FolderListFragment : UnchainedFragment(), DownloadListListener { // observe the list loading status viewModel.folderLiveData.observe(viewLifecycleOwner) { - it.getContentIfNotHandled()?.let { _ -> - updateList(adapter) - // scroll only if the results are still coming in - if (viewModel.getScrollingAllowed()) { - lifecycleScope.launch { - binding.rvFolderList.delayedScrolling(requireContext(), delay = 500) - } - } - } + it.getContentIfNotHandled()?.let { _ -> updateList(adapter) } } // observe errors diff --git a/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/viewmodel/FolderListViewModel.kt b/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/viewmodel/FolderListViewModel.kt index d2e45395..0e1721bf 100644 --- a/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/viewmodel/FolderListViewModel.kt +++ b/app/app/src/main/java/com/github/livingwithhippos/unchained/folderlist/viewmodel/FolderListViewModel.kt @@ -74,7 +74,7 @@ constructor( } is EitherResult.Success -> { hitList.add(file.success) - folderLiveData.postEvent(hitList) + folderLiveData.postEvent(hitList.toList()) setRetrievedLinks(hitList.size) progressLiveData.postValue((index + 1) * 100 / links.size) }