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

Refresh the right test types, remove hardcoded PCR. (#2938)

parent 5f0895c2
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ class SubmissionRepository @Inject constructor( ...@@ -75,7 +75,7 @@ class SubmissionRepository @Inject constructor(
} }
} }
fun refreshTest(type: CoronaTest.Type) { fun refreshTest(type: CoronaTest.Type? = null) {
Timber.tag(TAG).v("refreshTest(type=%s)", type) Timber.tag(TAG).v("refreshTest(type=%s)", type)
scope.launch { scope.launch {
......
...@@ -367,7 +367,7 @@ class HomeFragmentViewModel @AssistedInject constructor( ...@@ -367,7 +367,7 @@ class HomeFragmentViewModel @AssistedInject constructor(
fun refreshRequiredData() { fun refreshRequiredData() {
launch { launch {
submissionRepository.refreshTest(type = CoronaTest.Type.PCR) submissionRepository.refreshTest()
tracingRepository.refreshRiskLevel() tracingRepository.refreshRiskLevel()
} }
} }
......
...@@ -99,7 +99,7 @@ class SubmissionTestResultAvailableViewModel @AssistedInject constructor( ...@@ -99,7 +99,7 @@ class SubmissionTestResultAvailableViewModel @AssistedInject constructor(
) )
init { init {
submissionRepository.refreshTest(type = PCR) submissionRepository.refreshTest(type = testType)
} }
fun goBack() { fun goBack() {
......
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