mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
CrashDetectionEvents -> CrashDetectionEvent
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@
|
||||
|
||||
package io.element.android.features.rageshake.api.crash
|
||||
|
||||
sealed interface CrashDetectionEvents {
|
||||
data object ResetAllCrashData : CrashDetectionEvents
|
||||
data object ResetAppHasCrashed : CrashDetectionEvents
|
||||
sealed interface CrashDetectionEvent {
|
||||
data object ResetAllCrashData : CrashDetectionEvent
|
||||
data object ResetAppHasCrashed : CrashDetectionEvent
|
||||
}
|
||||
+1
-1
@@ -11,5 +11,5 @@ package io.element.android.features.rageshake.api.crash
|
||||
data class CrashDetectionState(
|
||||
val appName: String,
|
||||
val crashDetected: Boolean,
|
||||
val eventSink: (CrashDetectionEvents) -> Unit
|
||||
val eventSink: (CrashDetectionEvent) -> Unit
|
||||
)
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ fun CrashDetectionView(
|
||||
onOpenBugReport: () -> Unit = { },
|
||||
) {
|
||||
fun onPopupDismissed() {
|
||||
state.eventSink(CrashDetectionEvents.ResetAllCrashData)
|
||||
state.eventSink(CrashDetectionEvent.ResetAllCrashData)
|
||||
}
|
||||
|
||||
if (state.crashDetected) {
|
||||
|
||||
Reference in New Issue
Block a user