mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Ensure the form data are not lost when opening the log viewer. Closes #5579
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ class BugReportPresenter(
|
|||||||
private val bugReporter: BugReporter,
|
private val bugReporter: BugReporter,
|
||||||
private val crashDataStore: CrashDataStore,
|
private val crashDataStore: CrashDataStore,
|
||||||
private val screenshotHolder: ScreenshotHolder,
|
private val screenshotHolder: ScreenshotHolder,
|
||||||
@AppCoroutineScope
|
@param:AppCoroutineScope
|
||||||
private val appCoroutineScope: CoroutineScope,
|
private val appCoroutineScope: CoroutineScope,
|
||||||
) : Presenter<BugReportState> {
|
) : Presenter<BugReportState> {
|
||||||
private class BugReporterUploadListener(
|
private class BugReporterUploadListener(
|
||||||
@@ -77,7 +77,7 @@ class BugReportPresenter(
|
|||||||
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
|
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
|
||||||
mutableStateOf(AsyncAction.Uninitialized)
|
mutableStateOf(AsyncAction.Uninitialized)
|
||||||
}
|
}
|
||||||
val formState: MutableState<BugReportFormState> = remember {
|
val formState: MutableState<BugReportFormState> = rememberSaveable {
|
||||||
mutableStateOf(BugReportFormState.Default)
|
mutableStateOf(BugReportFormState.Default)
|
||||||
}
|
}
|
||||||
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)
|
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)
|
||||||
|
|||||||
Reference in New Issue
Block a user