Always use the handleEvent(s) function the same way.
This commit is contained in:
parent
f1389cb2ae
commit
fdd4e2115c
20 changed files with 21 additions and 21 deletions
|
|
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue