DownloadFragment: Display downloads in reversed order

Latest downloads should always be on top to allow users to easily manage them.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-04-30 18:37:37 +05:30
parent b76eb75e4e
commit 4a109fa164

View File

@@ -90,7 +90,7 @@ class DownloadFragment : BaseFragment(R.layout.fragment_download) {
viewLifecycleOwner.lifecycleScope.launch {
downloadWorkerUtil.downloadsList.collectLatest {
downloadList = it
updateController(it)
updateController(it.reversed())
}
}
}