feat(series): add long-click context menu to episode cards

Add a ModalBottomSheet with Mark as watched/unwatched actions on long-click of episode cards.

- Replace clickable with combinedClickable to support long-click gestures
- Add markEpisodeAsWatched function to SeriesViewModel
- Add MediaAction model usage for bottom sheet actions
- Add test tag for the dialog component
This commit is contained in:
2026-06-26 16:32:53 +00:00
parent e8224849cc
commit 18e68c6051
2 changed files with 56 additions and 5 deletions

View File

@@ -186,6 +186,12 @@ class SeriesViewModel @Inject constructor(
}
}
fun markEpisodeAsWatched(episodeId: UUID, watched: Boolean) {
viewModelScope.launch {
mediaMetadataUpdater.markAsWatched(episodeId, watched)
}
}
fun selectSeries(series: SeriesDto) {
_series.value = series
viewModelScope.launch {