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

Commit

Permalink
Refresh the right test types, remove hardcoded PCR. (#2938)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Lechner <lukas.lechner@sap.com>
Co-authored-by: harambasicluka <64483219+harambasicluka@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 26, 2021
1 parent 5f0895c commit 11a1d18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

scope.launch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class HomeFragmentViewModel @AssistedInject constructor(

fun refreshRequiredData() {
launch {
submissionRepository.refreshTest(type = CoronaTest.Type.PCR)
submissionRepository.refreshTest()
tracingRepository.refreshRiskLevel()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SubmissionTestResultAvailableViewModel @AssistedInject constructor(
)

init {
submissionRepository.refreshTest(type = PCR)
submissionRepository.refreshTest(type = testType)
}

fun goBack() {
Expand Down

0 comments on commit 11a1d18

Please sign in to comment.