More cleanup on BugReportView.

This commit is contained in:
Benoit Marty 2023-06-30 17:31:07 +02:00 committed by Benoit Marty
parent 1909ed9574
commit f325ffad12
2 changed files with 27 additions and 7 deletions

View file

@ -110,12 +110,14 @@ fun BugReportView(
onCheckedChange = { eventSink(BugReportEvents.SetSendLog(it)) },
enabled = isFormEnabled,
title = stringResource(id = R.string.screen_bug_report_include_logs),
subtitle = stringResource(id = R.string.screen_bug_report_logs_description),
)
PreferenceSwitch(
isChecked = state.formState.canContact,
onCheckedChange = { eventSink(BugReportEvents.SetCanContact(it)) },
enabled = isFormEnabled,
title = stringResource(id = R.string.screen_bug_report_contact_me)
title = stringResource(id = R.string.screen_bug_report_contact_me_title),
subtitle = stringResource(id = R.string.screen_bug_report_contact_me),
)
if (state.screenshotUri != null) {
PreferenceSwitch(