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

Added 'Check is running' card during launch time background execution after 24 hours (closes EXPOSUREAPP-1556) #762

Merged
merged 3 commits into from
Jun 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class TracingViewModel : ViewModel() {
currentDate.withTimeAtStartOfDay() != lastFetch.withTimeAtStartOfDay()
val isNetworkEnabled = ConnectivityHelper.isNetworkEnabled(CoronaWarnApplication.getAppContext())
if (keysWereNotRetrievedToday && isNetworkEnabled) {
TracingRepository.isRefreshing.value = true
RetrieveDiagnosisKeysTransaction.start()
refreshLastTimeDiagnosisKeysFetchedDate()
TimerHelper.checkManualKeyRetrievalTimer()
Expand All @@ -83,6 +84,7 @@ class TracingViewModel : ViewModel() {
} catch (e: TransactionException) {
e.cause?.report(INTERNAL)
}
TracingRepository.isRefreshing.value = false
}
}

Expand Down