You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/srs/ui/symptoms/calendar/SrsSymptomsCalendarFragment.kt
+3-1
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,8 @@ class SrsSymptomsCalendarFragment : Fragment(R.layout.fragment_submission_sympto
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/srs/ui/symptoms/calendar/SrsSymptomsCalendarViewModel.kt
+4
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ class SrsSymptomsCalendarViewModel @AssistedInject constructor(
32
32
val symptomStart = symptomStartInternal.asLiveData(context = dispatcherProvider.Default)
33
33
34
34
val events =SingleLiveEvent<SrsSymptomsCalendarNavigation>()
35
+
val showLoadingIndicator =SingleLiveEvent<Boolean>()
35
36
36
37
funonCancelConfirmed() {
37
38
Timber.d("Canceled SRS submission")
@@ -47,6 +48,7 @@ class SrsSymptomsCalendarViewModel @AssistedInject constructor(
47
48
return
48
49
}
49
50
Timber.tag(TAG).d("onDone() clicked on calender screen.")
51
+
showLoadingIndicator.postValue(true)
50
52
submitSrs()
51
53
}
52
54
@@ -65,6 +67,8 @@ class SrsSymptomsCalendarViewModel @AssistedInject constructor(
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/srs/ui/symptoms/intro/SrsSymptomsIntroductionFragment.kt
+4-2
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,8 @@ class SrsSymptomsIntroductionFragment : Fragment(R.layout.fragment_submission_sy
56
56
updateButtons(it)
57
57
}
58
58
59
+
viewModel.showLoadingIndicator.observe(viewLifecycleOwner) { binding.symptomButtonNext.isLoading = it }
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/srs/ui/symptoms/intro/SrsSymptomsIntroductionViewModel.kt
+4
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@ class SrsSymptomsIntroductionViewModel @AssistedInject constructor(
26
26
) : CWAViewModel(dispatcherProvider) {
27
27
28
28
val events =SingleLiveEvent<SrsSymptomsIntroductionNavigation>()
29
+
val showLoadingIndicator =SingleLiveEvent<Boolean>()
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/symptoms/calendar/SubmissionSymptomCalendarFragment.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ class SubmissionSymptomCalendarFragment :
Copy file name to clipboardExpand all lines: Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/symptoms/introduction/SubmissionSymptomIntroductionFragment.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -85,8 +85,8 @@ class SubmissionSymptomIntroductionFragment :
0 commit comments