filters #107

Merged
AmineB merged 8 commits from filters into master 2022-12-07 19:13:48 +00:00
Showing only changes of commit 477883ed39 - Show all commits

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)
}