Skip to content
Snippets Groups Projects
Unverified Commit 266d0438 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Fix DCC request screen abort dialog actions. (#3466)

Canceling the dialog (negative action) stays on screen.
Confirming the dialog (positive action) aborts the registration and sends the user back to the home screen.
parent 3c487112
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ class RequestCovidCertificateFragment : Fragment(R.layout.fragment_request_covid ...@@ -118,7 +118,7 @@ class RequestCovidCertificateFragment : Fragment(R.layout.fragment_request_covid
private fun showCloseDialog() = MaterialAlertDialogBuilder(requireContext()) private fun showCloseDialog() = MaterialAlertDialogBuilder(requireContext())
.setTitle(R.string.request_gc_dialog_title) .setTitle(R.string.request_gc_dialog_title)
.setMessage(R.string.request_gc_dialog_message) .setMessage(R.string.request_gc_dialog_message)
.setNegativeButton(R.string.request_gc_dialog_negative_button) { _, _ -> viewModel.navigateBack() } .setNegativeButton(R.string.request_gc_dialog_negative_button) { _, _ -> }
.setPositiveButton(R.string.request_gc_dialog_positive_button) { _, _ -> viewModel.navigateToHomeScreen() } .setPositiveButton(R.string.request_gc_dialog_positive_button) { _, _ -> viewModel.navigateToHomeScreen() }
.create() .create()
.show() .show()
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
<string name="request_gc_dialog_title">Registrierung abbrechen</string> <string name="request_gc_dialog_title">Registrierung abbrechen</string>
<!-- XTXT: Request green certificate exit dialog message --> <!-- XTXT: Request green certificate exit dialog message -->
<string name="request_gc_dialog_message">Wenn Sie die Test-Registrierung abbrechen, können Sie Ihr Testergebnis nicht in der App erhalten.</string> <string name="request_gc_dialog_message">Wenn Sie die Test-Registrierung abbrechen, können Sie Ihr Testergebnis nicht in der App erhalten.</string>
<!-- XBUT: Request green certificate exit dialog positive button -->
<string name="request_gc_dialog_positive_button">Registrierung abbrechen</string>
<!-- XBUT: Request green certificate exit dialog negative button --> <!-- XBUT: Request green certificate exit dialog negative button -->
<string name="request_gc_dialog_positive_button">OK</string> <string name="request_gc_dialog_negative_button">Registrierung fortsetzen</string>
<!-- XBUT: Request green certificate exit dialog negative button -->
<string name="request_gc_dialog_negative_button">Abbrechen</string>
<!-- XTXT: Detail green certificate title --> <!-- XTXT: Detail green certificate title -->
<string name="detail_green_certificate_title">EU Digitales COVID-Testzertifikat</string> <string name="detail_green_certificate_title">EU Digitales COVID-Testzertifikat</string>
<!-- XTXT: Detail green certificate test type --> <!-- XTXT: Detail green certificate test type -->
......
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