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 9f0b5dbc64
commit dd5d67d186
14 changed files with 139 additions and 31 deletions
@@ -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)
}
}