Rename handleEvents to handleEvent

This commit is contained in:
Benoit Marty 2025-11-07 12:20:33 +01:00
parent 6acd0ed687
commit 7ad9c8f687
94 changed files with 182 additions and 182 deletions

View file

@ -37,7 +37,7 @@ class TroubleshootNotificationsPresenter(
}
val testSuiteState by troubleshootTestSuite.state.collectAsState()
fun handleEvents(event: TroubleshootNotificationsEvents) {
fun handleEvent(event: TroubleshootNotificationsEvents) {
when (event) {
TroubleshootNotificationsEvents.StartTests -> coroutineScope.launch {
troubleshootTestSuite.runTestSuite(this)
@ -57,7 +57,7 @@ class TroubleshootNotificationsPresenter(
return TroubleshootNotificationsState(
testSuiteState = testSuiteState,
eventSink = ::handleEvents
eventSink = ::handleEvent,
)
}
}

View file

@ -61,7 +61,7 @@ class PushHistoryPresenter(
var resetAction: AsyncAction<Unit> by remember { mutableStateOf(AsyncAction.Uninitialized) }
var showNotSameAccountError by remember { mutableStateOf(false) }
fun handleEvents(event: PushHistoryEvents) {
fun handleEvent(event: PushHistoryEvents) {
when (event) {
is PushHistoryEvents.SetShowOnlyErrors -> {
showOnlyErrors = event.showOnlyErrors
@ -97,7 +97,7 @@ class PushHistoryPresenter(
showOnlyErrors = showOnlyErrors,
resetAction = resetAction,
showNotSameAccountError = showNotSameAccountError,
eventSink = ::handleEvents
eventSink = ::handleEvent,
)
}
}