Rename Event for clarity

This commit is contained in:
Benoit Marty 2023-09-21 15:33:03 +02:00
parent 7c190883e8
commit 74fc9ad905
9 changed files with 15 additions and 15 deletions

View file

@ -29,7 +29,7 @@ class FakePermissionsPresenter(
private fun eventSink(events: PermissionsEvents) {
when (events) {
PermissionsEvents.AskPermissionToUser -> state.value = state.value.copy(showDialog = true, permissionAlreadyAsked = true)
PermissionsEvents.RequestPermissions -> state.value = state.value.copy(showDialog = true, permissionAlreadyAsked = true)
PermissionsEvents.CloseDialog -> state.value = state.value.copy(showDialog = false)
PermissionsEvents.OpenSystemSettingAndCloseDialog -> state.value = state.value.copy(showDialog = false)
}