Rename handleEvents to handleEvent
This commit is contained in:
parent
6acd0ed687
commit
7ad9c8f687
94 changed files with 182 additions and 182 deletions
|
|
@ -50,7 +50,7 @@ class LockScreenSettingsPresenter(
|
|||
|
||||
val biometricUnlock = biometricAuthenticatorManager.rememberConfirmBiometricAuthenticator()
|
||||
|
||||
fun handleEvents(event: LockScreenSettingsEvents) {
|
||||
fun handleEvent(event: LockScreenSettingsEvents) {
|
||||
when (event) {
|
||||
LockScreenSettingsEvents.CancelRemovePin -> showRemovePinConfirmation = false
|
||||
LockScreenSettingsEvents.ConfirmRemovePin -> {
|
||||
|
|
@ -82,7 +82,7 @@ class LockScreenSettingsPresenter(
|
|||
isBiometricEnabled = isBiometricEnabled,
|
||||
showRemovePinConfirmation = showRemovePinConfirmation,
|
||||
showToggleBiometric = biometricAuthenticatorManager.isDeviceSecured,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class SetupBiometricPresenter(
|
|||
val coroutineScope = rememberCoroutineScope()
|
||||
val biometricUnlock = biometricAuthenticatorManager.rememberConfirmBiometricAuthenticator()
|
||||
|
||||
fun handleEvents(event: SetupBiometricEvents) {
|
||||
fun handleEvent(event: SetupBiometricEvents) {
|
||||
when (event) {
|
||||
SetupBiometricEvents.AllowBiometric -> coroutineScope.launch {
|
||||
biometricUnlock.setup()
|
||||
|
|
@ -52,7 +52,7 @@ class SetupBiometricPresenter(
|
|||
|
||||
return SetupBiometricState(
|
||||
isBiometricSetupDone = isBiometricSetupDone,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class SetupPinPresenter(
|
|||
}
|
||||
}
|
||||
|
||||
fun handleEvents(event: SetupPinEvents) {
|
||||
fun handleEvent(event: SetupPinEvents) {
|
||||
when (event) {
|
||||
is SetupPinEvents.OnPinEntryChanged -> {
|
||||
// Use the fromConfirmationStep flag from ui to avoid race condition.
|
||||
|
|
@ -106,7 +106,7 @@ class SetupPinPresenter(
|
|||
isConfirmationStep = isConfirmationStep,
|
||||
setupPinFailure = setupPinFailure,
|
||||
appName = buildMeta.applicationName,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class PinUnlockPresenter(
|
|||
isUnlocked.value = true
|
||||
}
|
||||
|
||||
fun handleEvents(event: PinUnlockEvents) {
|
||||
fun handleEvent(event: PinUnlockEvents) {
|
||||
when (event) {
|
||||
is PinUnlockEvents.OnPinKeypadPressed -> {
|
||||
pinEntryState.value = pinEntry.process(event.pinKeypadModel)
|
||||
|
|
@ -129,7 +129,7 @@ class PinUnlockPresenter(
|
|||
showBiometricUnlock = biometricUnlock.isActive,
|
||||
biometricUnlockResult = biometricUnlockResult,
|
||||
isUnlocked = isUnlocked.value,
|
||||
eventSink = ::handleEvents
|
||||
eventSink = ::handleEvent,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue