Revert logic determining active filters for todos

Ensures that the correct filter is applied when determining if a filter
is active for todo tasks
This commit is contained in:
Hafiz 2025-06-03 15:38:06 -05:00 committed by Phillip Thelen
parent 5139f74efa
commit ef2229e438

View file

@ -200,7 +200,11 @@ constructor(
return false
}
return Task.FILTER_ALL != activeFilters[type]
return if (TaskType.TODO == type) {
Task.FILTER_ACTIVE != activeFilters[type]
} else {
Task.FILTER_ALL != activeFilters[type]
}
}
fun filter(tasks: List<Task>): List<Task> {