Skip to content
Snippets Groups Projects
Commit 2cf91a27 authored by Matthias Urhahn's avatar Matthias Urhahn
Browse files

Fix build error due to merge 2.3.x -> 2.4.x

parent fe967a04
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,19 @@ class RATResultNegativeFragment : Fragment(R.layout.fragment_submission_antigen_ ...@@ -26,6 +26,19 @@ class RATResultNegativeFragment : Fragment(R.layout.fragment_submission_antigen_
private val shortTime = DateTimeFormat.shortTime() private val shortTime = DateTimeFormat.shortTime()
private val deleteRatTestConfirmationDialog by lazy {
DialogHelper.DialogInstance(
requireActivity(),
R.string.submission_test_result_dialog_remove_test_title,
R.string.submission_test_result_dialog_remove_test_message,
R.string.submission_test_result_dialog_remove_test_button_positive,
R.string.submission_test_result_dialog_remove_test_button_negative,
positiveButtonFunction = {
viewModel.onDeleteTestConfirmed()
}
)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) = override fun onViewCreated(view: View, savedInstanceState: Bundle?) =
with(binding) { with(binding) {
coronatestNegativeAntigenResultButton.setOnClickListener { viewModel.onDeleteTestClicked() } coronatestNegativeAntigenResultButton.setOnClickListener { viewModel.onDeleteTestClicked() }
...@@ -75,19 +88,6 @@ class RATResultNegativeFragment : Fragment(R.layout.fragment_submission_antigen_ ...@@ -75,19 +88,6 @@ class RATResultNegativeFragment : Fragment(R.layout.fragment_submission_antigen_
localTime.toString(DATE_FORMAT), localTime.toString(DATE_FORMAT),
localTime.toString(shortTime) localTime.toString(shortTime)
) )
}
private val deleteRatTestConfirmationDialog by lazy {
DialogHelper.DialogInstance(
requireActivity(),
R.string.submission_test_result_dialog_remove_test_title,
R.string.submission_test_result_dialog_remove_test_message,
R.string.submission_test_result_dialog_remove_test_button_positive,
R.string.submission_test_result_dialog_remove_test_button_negative,
positiveButtonFunction = {
viewModel.onDeleteTestConfirmed()
}
)
val isAnonymousTest = with(testAge.test) { val isAnonymousTest = with(testAge.test) {
firstName == null && lastName == null && dateOfBirth == null firstName == null && lastName == null && dateOfBirth == null
......
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