Move open system setting to the PermissionsPresenter

This commit is contained in:
Benoit Marty 2023-09-21 14:19:03 +02:00 committed by Benoit Marty
parent 2610fa8258
commit ffcac2a0da
14 changed files with 139 additions and 31 deletions

View file

@ -31,6 +31,7 @@ class FakePermissionsPresenter(
when (events) {
PermissionsEvents.AskPermissionToUser -> 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)
}
}