Rename handleEvents to handleEvent
This commit is contained in:
@@ -96,7 +96,7 @@ class CreatePollPresenter(
|
||||
|
||||
val scope = rememberCoroutineScope()
|
||||
|
||||
fun handleEvents(event: CreatePollEvents) {
|
||||
fun handleEvent(event: CreatePollEvents) {
|
||||
when (event) {
|
||||
is CreatePollEvents.Save -> scope.launch {
|
||||
if (canSave) {
|
||||
@@ -183,7 +183,7 @@ class CreatePollPresenter(
|
||||
pollKind = poll.pollKind,
|
||||
showBackConfirmation = showBackConfirmation,
|
||||
showDeleteConfirmation = showDeleteConfirmation,
|
||||
eventSink = ::handleEvents,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class PollHistoryPresenter(
|
||||
}
|
||||
}
|
||||
val coroutineScope = rememberCoroutineScope()
|
||||
fun handleEvents(event: PollHistoryEvents) {
|
||||
fun handleEvent(event: PollHistoryEvents) {
|
||||
when (event) {
|
||||
is PollHistoryEvents.LoadMore -> {
|
||||
coroutineScope.loadMore(timeline)
|
||||
@@ -88,7 +88,7 @@ class PollHistoryPresenter(
|
||||
hasMoreToLoad = paginationState.hasMoreToLoad,
|
||||
pollHistoryItems = pollHistoryItems,
|
||||
activeFilter = activeFilter,
|
||||
eventSink = ::handleEvents,
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user