Skip to content
Snippets Groups Projects
Unverified Commit 9240abab authored by Oliver Zimmerman's avatar Oliver Zimmerman Committed by GitHub
Browse files

Added brief description to submission fragments (EXPOSUREAPP-4133) (#1824)


* Added fragment descriptions to fragments that did not yet have them

* Removed trailing space.

* Adjusted description text

Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
parent c8bc90d0
No related branches found
No related tags found
No related merge requests found
Showing with 25 additions and 1 deletion
......@@ -17,6 +17,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModels
import javax.inject.Inject
/**
* The [SubmissionTestResultAvailableFragment] appears when the user's test result is available,
* providing the option to navigate to the consent screen where they can provide or revoke consent
*/
class SubmissionTestResultAvailableFragment : Fragment(R.layout.fragment_submission_test_result_available), AutoInject {
@Inject lateinit var viewModelFactory: CWAViewModelFactoryProvider.Factory
......
......@@ -21,6 +21,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModels
import javax.inject.Inject
/**
* The [SubmissionSymptomIntroductionFragment], initial fragment displayed when the user starts the submission process
* providing symptoms, asking whether or not the user has experienced any of the common symptoms of COVID-19.
*/
class SubmissionSymptomIntroductionFragment : Fragment(R.layout.fragment_submission_symptom_intro),
AutoInject {
......
......@@ -24,7 +24,7 @@ import kotlinx.android.synthetic.main.include_submission_tan.*
import javax.inject.Inject
/**
* Fragment for TAN entry
* [SubmissionTanFragment] for submission via TAN entry
*/
class SubmissionTanFragment : Fragment(R.layout.fragment_submission_tan), AutoInject {
......
......@@ -18,6 +18,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModels
import javax.inject.Inject
/**
* [SubmissionTestResultConsentGivenFragment], the test result screen that is shown to the user if they have provided
* consent.
*/
class SubmissionTestResultConsentGivenFragment : Fragment(R.layout.fragment_submission_test_result_consent_given),
AutoInject {
......
......@@ -16,6 +16,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModels
import javax.inject.Inject
/**
* [SubmissionTestResultNoConsentFragment], the test result screen that is shown to the user if they have not provided
* consent
*/
class SubmissionTestResultNoConsentFragment : Fragment(R.layout.fragment_submission_test_result_positive_no_consent),
AutoInject {
......
......@@ -16,6 +16,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModelsAssisted
import javax.inject.Inject
/**
* [SubmissionResultPositiveOtherWarningNoConsentFragment] the screen prompting the user to help by warning others of
* their positive status, pressing the accept button provides the consent that was previously not provided.
*/
class SubmissionResultPositiveOtherWarningNoConsentFragment :
Fragment(R.layout.fragment_submission_no_consent_positive_other_warning), AutoInject {
......
......@@ -15,6 +15,10 @@ import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactoryProvider
import de.rki.coronawarnapp.util.viewmodel.cwaViewModels
import javax.inject.Inject
/**
* [SubmissionYourConsentFragment] allows the user to provide or revoke consent via a switch on the screen. This screen
* is accessed via the TestResultAvailableFragment flow.
*/
class SubmissionYourConsentFragment : Fragment(R.layout.fragment_submission_your_consent), AutoInject {
@Inject lateinit var viewModelFactory: CWAViewModelFactoryProvider.Factory
......
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