mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Be able to test PermissionsPresenterTest. Create interface to abstract Accompanist implementation
This commit is contained in:
committed by
Benoit Marty
parent
d8b37d6ead
commit
000ed480ee
-1
@@ -19,5 +19,4 @@ package io.element.android.libraries.permissions.api
|
||||
sealed interface PermissionsEvents {
|
||||
object OpenSystemDialog : PermissionsEvents
|
||||
object CloseDialog : PermissionsEvents
|
||||
object OpenSystemSettings : PermissionsEvents
|
||||
}
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ fun PermissionsView(
|
||||
content = "In order to let the application display notification, please grant the permission to the system settings",
|
||||
submitText = "Open settings",
|
||||
onSubmitClicked = {
|
||||
state.eventSink.invoke(PermissionsEvents.OpenSystemSettings)
|
||||
state.eventSink.invoke(PermissionsEvents.CloseDialog)
|
||||
openSystemSettings()
|
||||
},
|
||||
onDismiss = { state.eventSink.invoke(PermissionsEvents.CloseDialog) },
|
||||
|
||||
Reference in New Issue
Block a user