Tags sources reset.

This commit is contained in:
aminecmi 2022-12-05 22:30:49 +01:00
parent 748ed41096
commit 477883ed39

View File

@ -89,6 +89,10 @@ class FilterSheetFragment : BottomSheetDialogFragment(), DIAware {
(it as Chip).isCloseIconVisible = true
tagChip = it
repository.setTagFilter(tag)
sourceChip?.isCloseIconVisible = false
sourceChip = null
repository.setSourceFilter(null)
}
if (repository.tagFilter.value?.equals(tag) == true) {
@ -141,6 +145,11 @@ class FilterSheetFragment : BottomSheetDialogFragment(), DIAware {
(it as Chip).isCloseIconVisible = true
sourceChip = it
repository.setSourceFilter(source)
tagChip?.isCloseIconVisible = false
tagChip = null
repository.setTagFilter(null)
}