Always use the handleEvent(s) function the same way.

This commit is contained in:
Benoit Marty 2025-11-03 18:49:00 +01:00
parent f1389cb2ae
commit fdd4e2115c
20 changed files with 21 additions and 21 deletions

View file

@ -84,7 +84,7 @@ class VoiceMessagePresenter(
}
}
fun eventSink(event: VoiceMessageEvents) {
fun handleEvent(event: VoiceMessageEvents) {
when (event) {
is VoiceMessageEvents.PlayPause -> {
if (playerState.isPlaying) {
@ -119,7 +119,7 @@ class VoiceMessagePresenter(
progress = progress,
time = time,
showCursor = showCursor,
eventSink = { eventSink(it) },
eventSink = ::handleEvent,
)
}
}