mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix bug
This commit is contained in:
parent
78734fbb13
commit
adad529949
2 changed files with 16 additions and 0 deletions
app/src/main/java/com/lagradost/cloudstream3/ui/download
|
@ -72,6 +72,14 @@ class DownloadChildFragment : Fragment() {
|
|||
downloadsViewModel.setIsMultiDeleteState(false)
|
||||
}
|
||||
|
||||
/**
|
||||
* We have to make sure selected items are
|
||||
* cleared here as well so we don't run in an
|
||||
* inconsistent state where selected items do
|
||||
* not match the multi delete state we are in.
|
||||
*/
|
||||
downloadsViewModel.clearSelectedItems()
|
||||
|
||||
val folder = arguments?.getString("folder")
|
||||
val name = arguments?.getString("name")
|
||||
if (folder == null) {
|
||||
|
|
|
@ -105,6 +105,14 @@ class DownloadFragment : Fragment() {
|
|||
downloadsViewModel.setIsMultiDeleteState(false)
|
||||
}
|
||||
|
||||
/**
|
||||
* We have to make sure selected items are
|
||||
* cleared here as well so we don't run in an
|
||||
* inconsistent state where selected items do
|
||||
* not match the multi delete state we are in.
|
||||
*/
|
||||
downloadsViewModel.clearSelectedItems()
|
||||
|
||||
observe(downloadsViewModel.headerCards) {
|
||||
(binding?.downloadList?.adapter as? DownloadAdapter)?.submitList(it)
|
||||
binding?.downloadLoading?.isVisible = false
|
||||
|
|
Loading…
Reference in a new issue