mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user