Skip to content

Commit 80196c2

Browse files
authored
Merge pull request #5695 from element-hq/feature/bma/bugReportForm
Ensure the form data are not lost when opening the log viewer.
2 parents 596b773 + 8f63916 commit 80196c2

File tree

1 file changed

+1
-1
lines changed
  • features/rageshake/impl/src/main/kotlin/io/element/android/features/rageshake/impl/bugreport

1 file changed

+1
-1
lines changed

features/rageshake/impl/src/main/kotlin/io/element/android/features/rageshake/impl/bugreport/BugReportPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class BugReportPresenter(
7777
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
7878
mutableStateOf(AsyncAction.Uninitialized)
7979
}
80-
val formState: MutableState<BugReportFormState> = remember {
80+
val formState: MutableState<BugReportFormState> = rememberSaveable {
8181
mutableStateOf(BugReportFormState.Default)
8282
}
8383
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)

0 commit comments

Comments
 (0)