Rename handleEvents to handleEvent
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ class LogoutPresenter(
|
||||
}
|
||||
}
|
||||
|
||||
fun handleEvents(event: LogoutEvents) {
|
||||
fun handleEvent(event: LogoutEvents) {
|
||||
when (event) {
|
||||
is LogoutEvents.Logout -> {
|
||||
if (logoutAction.value.isConfirming() || event.ignoreSdkError) {
|
||||
@@ -96,7 +96,7 @@ class LogoutPresenter(
|
||||
backupUploadState = backupUploadState,
|
||||
waitingForALongTime = waitingForALongTime,
|
||||
logoutAction = logoutAction.value,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -47,7 +47,7 @@ class DirectLogoutPresenter(
|
||||
|
||||
val isLastDevice by encryptionService.isLastDevice.collectAsState()
|
||||
|
||||
fun handleEvents(event: DirectLogoutEvents) {
|
||||
fun handleEvent(event: DirectLogoutEvents) {
|
||||
when (event) {
|
||||
is DirectLogoutEvents.Logout -> {
|
||||
if (logoutAction.value.isConfirming() || event.ignoreSdkError) {
|
||||
@@ -66,7 +66,7 @@ class DirectLogoutPresenter(
|
||||
canDoDirectSignOut = !isLastDevice &&
|
||||
!backupUploadState.isBackingUp(),
|
||||
logoutAction = logoutAction.value,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user