Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed event text readability on colored backgrounds ([#1065])
- Fixed invisible current time indicator in weekly view ([#99])
- Fixed stuck zoom level in weekly view on some devices ([#621])
- Fixed show all calendar type ([#1092])

## [1.10.3] - 2026-02-14
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,23 @@ class QuickFilterCalendarAdapter(
quickFilterCalendar.setOnLongClickListener {
if (lastLongClickedType != calendar) {
lastActiveKeys.clear()
allCalendars.forEach {
lastActiveKeys.add(it.id!!)
}
}
val activeKeysCopy = HashSet(activeKeys)
allCalendars.forEach {
viewClicked(select = lastActiveKeys.contains(it.id!!), calendar = it)
val isSelected = when {
it.id == calendar.id -> true
activeKeysCopy.size > 1 -> false
else -> lastActiveKeys.contains(it.id!!)
}
viewClicked(
select = isSelected,
calendar = it
)
}

val shouldSelectCurrent = if (lastLongClickedType != calendar) {
true
} else {
lastActiveKeys.contains(calendar.id!!)
}

viewClicked(shouldSelectCurrent, calendar)
notifyItemRangeChanged(0, itemCount)
callback()
lastLongClickedType = calendar
Expand Down
Loading