Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit b6acb6d

Browse files
SamuraiKekmtwalli
andauthored
Swap faq/ok buttons. (#5772)
Co-authored-by: Mohamed <[email protected]>
1 parent 83ef8bd commit b6acb6d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/fragment/SubmissionDispatcherFragment.kt

+7-2
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,24 @@ class SubmissionDispatcherFragment : Fragment(R.layout.fragment_submission_dispa
3636
when (it) {
3737
is SubmissionNavigationEvents.NavigateToMainActivity ->
3838
findNavController().popBackStack()
39+
3940
is SubmissionNavigationEvents.NavigateToTAN ->
4041
findNavController().navigate(
4142
SubmissionDispatcherFragmentDirections
4243
.actionSubmissionDispatcherFragmentToSubmissionTanFragment(
4344
comesFromDispatcherFragment = true
4445
)
4546
)
47+
4648
is SubmissionNavigationEvents.OpenTestCenterUrl ->
4749
openUrl(getString(R.string.submission_dispatcher_card_test_center_link))
50+
4851
is SubmissionNavigationEvents.NavigateToContact ->
4952
findNavController().navigate(
5053
SubmissionDispatcherFragmentDirections
5154
.actionSubmissionDispatcherFragmentToSubmissionContactFragment()
5255
)
56+
5357
is SubmissionNavigationEvents.NavigateToQRCodeScan -> openUniversalScanner()
5458

5559
is SubmissionNavigationEvents.NavigateToProfileList -> {
@@ -63,6 +67,7 @@ class SubmissionDispatcherFragment : Fragment(R.layout.fragment_submission_dispa
6367
.actionSubmissionDispatcherFragmentToRapidTestProfileNavGraph()
6468
)
6569
}
70+
6671
is SubmissionNavigationEvents.NavigateToSelfTestConsentScreen -> {
6772
findNavController().navigate(
6873
R.id.srs_nav_graph,
@@ -77,8 +82,8 @@ class SubmissionDispatcherFragment : Fragment(R.layout.fragment_submission_dispa
7782
viewModel.srsError.observe2(this) {
7883
displayDialog {
7984
setError(it)
80-
positiveButton(R.string.nm_faq_label) { openUrl(R.string.srs_faq_url) }
81-
negativeButton(android.R.string.ok)
85+
positiveButton(android.R.string.ok)
86+
negativeButton(R.string.nm_faq_label) { openUrl(R.string.srs_faq_url) }
8287
}
8388
}
8489
}

0 commit comments

Comments
 (0)