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

Fix missing timestamp on TracingFailed card (DEV) #2048


* Fix missing timestamp on TracingFailed card.
Remove risklevel requirement for showing the last submission timestamp on the TracingFailed card.
This requirement does not exist on the TracingDisabled card either.

* Rename variable.

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
parent 57498c01
No related branches found
No related tags found
No related merge requests found
......@@ -131,18 +131,13 @@ data class TracingFailed(
val showRestartButton: Boolean = !isInDetailsMode
fun getTimeFetched(c: Context): String = when (riskState) {
RiskState.LOW_RISK, RiskState.INCREASED_RISK -> {
if (lastExposureDetectionTime != null) {
c.getString(
R.string.risk_card_body_time_fetched,
formatRelativeDateTimeString(c, lastExposureDetectionTime)
)
} else {
c.getString(R.string.risk_card_body_not_yet_fetched)
}
}
else -> ""
fun getTimeFetched(context: Context): String = if (lastExposureDetectionTime != null) {
context.getString(
R.string.risk_card_body_time_fetched,
formatRelativeDateTimeString(context, lastExposureDetectionTime)
)
} else {
context.getString(R.string.risk_card_body_not_yet_fetched)
}
fun getLastRiskState(c: Context): String {
......
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