Skip to content
Snippets Groups Projects
Unverified Commit 971c4a64 authored by Alex Paulescu's avatar Alex Paulescu Committed by GitHub
Browse files

Submission process wrong cancelation dialog text (EXPOSUREAPP-4946) #2529

parent 4470b833
No related branches found
No related tags found
No related merge requests found
...@@ -94,23 +94,15 @@ class SubmissionTestResultAvailableFragment : Fragment(R.layout.fragment_submiss ...@@ -94,23 +94,15 @@ class SubmissionTestResultAvailableFragment : Fragment(R.layout.fragment_submiss
} }
private fun showCloseDialog() { private fun showCloseDialog() {
var dialogTitle = R.string.submission_test_result_available_close_dialog_title_consent_given
var dialogBody = R.string.submission_test_result_available_close_dialog_body_consent_given
if (!binding.submissionTestResultAvailableConsentStatus.consent) {
dialogTitle = R.string.submission_test_result_available_close_dialog_title_consent_not_given
dialogBody = R.string.submission_test_result_available_close_dialog_body_consent_not_given
}
val closeDialogInstance = DialogHelper.DialogInstance( val closeDialogInstance = DialogHelper.DialogInstance(
context = requireActivity(), context = requireActivity(),
title = dialogTitle, title = R.string.submission_test_result_available_close_dialog_title_consent_given,
message = dialogBody, message = R.string.submission_test_result_available_close_dialog_body_consent_given,
positiveButton = R.string.submission_test_result_available_close_dialog_continue_button, positiveButton = R.string.submission_test_result_available_close_dialog_continue_button,
negativeButton = R.string.submission_test_result_available_close_dialog_cancel_button, negativeButton = R.string.submission_test_result_available_close_dialog_cancel_button,
cancelable = true, cancelable = true,
positiveButtonFunction = { vm.onCancelConfirmed() }, positiveButtonFunction = {},
negativeButtonFunction = { } negativeButtonFunction = { vm.onCancelConfirmed() }
) )
DialogHelper.showDialog(closeDialogInstance) DialogHelper.showDialog(closeDialogInstance)
} }
......
...@@ -1404,9 +1404,9 @@ ...@@ -1404,9 +1404,9 @@
<!-- YTXT: Text for consent given --> <!-- YTXT: Text for consent given -->
<string name="submission_test_result_available_text_consent_given">"Vielen Dank, dass Sie mithelfen, andere zu warnen und damit einverstanden sind, Ihr Testergebnis zu teilen. \n\n"<b>"Bitte geben Sie Ihr Testergebnis im nächsten Schritt frei, indem Sie „Teilen“ antippen."</b>""</string> <string name="submission_test_result_available_text_consent_given">"Vielen Dank, dass Sie mithelfen, andere zu warnen und damit einverstanden sind, Ihr Testergebnis zu teilen. \n\n"<b>"Bitte geben Sie Ihr Testergebnis im nächsten Schritt frei, indem Sie „Teilen“ antippen."</b>""</string>
<!-- XHED: Close screen popup title for consent given --> <!-- XHED: Close screen popup title for consent given -->
<string name="submission_test_result_available_close_dialog_title_consent_given">"Möchten Sie den Vorgang wirklich abbrechen?"</string> <string name="submission_test_result_available_close_dialog_title_consent_given">"Testergebnis anzeigen"</string>
<!-- XTXT: Close screen popup text for consent given --> <!-- XTXT: Close screen popup text for consent given -->
<string name="submission_test_result_available_close_dialog_body_consent_given">"Achtung:\nSie sind dabei den Vorgang abzubrechen.\nSie haben Ihre Mitmenschen noch nicht gewarnt. Bitte schützen Sie Ihre Mitmenschen und schließen Sie den Vorgang ab."</string> <string name="submission_test_result_available_close_dialog_body_consent_given">"Erst wenn Sie sich über Ihr Testergebnis informiert haben, können Sie bei Bedarf Ihre Mitmenschen warnen und so helfen, Infektionsketten zu unterbrechen."</string>
<!-- YTXT: Text for consent NOT given --> <!-- YTXT: Text for consent NOT given -->
<string name="submission_test_result_available_text_consent_not_given">"Sie haben sich entschieden, Ihr Testergebnis nicht zu teilen. Ihre Mitmenschen werden nicht gewarnt. \n\nSie können im Anschluss Ihr Testergebnis doch noch teilen und mithelfen, die Verbreitung von Corona zu bekämpfen und Ihre Mitmenschen zu schützen."</string> <string name="submission_test_result_available_text_consent_not_given">"Sie haben sich entschieden, Ihr Testergebnis nicht zu teilen. Ihre Mitmenschen werden nicht gewarnt. \n\nSie können im Anschluss Ihr Testergebnis doch noch teilen und mithelfen, die Verbreitung von Corona zu bekämpfen und Ihre Mitmenschen zu schützen."</string>
<!-- XHED: Close screen popup title for consent NOT given --> <!-- XHED: Close screen popup title for consent NOT given -->
...@@ -1414,9 +1414,9 @@ ...@@ -1414,9 +1414,9 @@
<!-- XTXT: Close screen popup text for consent NOT given --> <!-- XTXT: Close screen popup text for consent NOT given -->
<string name="submission_test_result_available_close_dialog_body_consent_not_given">"Ihre bisherigen Angaben werden nicht gespeichert."</string> <string name="submission_test_result_available_close_dialog_body_consent_not_given">"Ihre bisherigen Angaben werden nicht gespeichert."</string>
<!-- XBUT: Close screen popup cancel button --> <!-- XBUT: Close screen popup cancel button -->
<string name="submission_test_result_available_close_dialog_cancel_button">"Abbrechen"</string> <string name="submission_test_result_available_close_dialog_cancel_button">"Nicht Anzeigen"</string>
<!-- XBUT: Close screen popup continue button --> <!-- XBUT: Close screen popup continue button -->
<string name="submission_test_result_available_close_dialog_continue_button">"Fortsetzen"</string> <string name="submission_test_result_available_close_dialog_continue_button">"Anzeigen"</string>
<!-- Submission your consent screen --> <!-- Submission your consent screen -->
<!-- XHED: Your consent screen title --> <!-- XHED: Your consent screen title -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment