Skip to content

Commit

Permalink
Add 'never' to lastUploadedText
Browse files Browse the repository at this point in the history
thgoebel committed Jan 31, 2025
1 parent df04aea commit 29a3390
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -115,14 +115,14 @@ private fun ReportStats(reportsViewModel: ReportsViewModel = viewModel()) {
val millis = it.toEpochMilli()

DateFormat.getMediumDateFormat(context).format(millis) + " " + DateFormat.getTimeFormat(context).format(millis)
}
} ?: stringResource(R.string.reports_last_uploaded_never)

Column(
modifier = Modifier.wrapContentHeight()
) {
Text(text = stringResource(R.string.reports_total, reportsTotal.value ?: 0))
Text(text = stringResource(R.string.reports_not_uploaded, reportsNotUploaded.value ?: 0))
Text(text = stringResource(R.string.reports_last_uploaded, lastUploadedText ?: ""))
Text(text = stringResource(R.string.reports_last_uploaded, lastUploadedText))
}
}

1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -49,6 +49,7 @@
<string name="reports_total">Reports total: %d</string>
<string name="reports_not_uploaded">Reports not uploaded: %d</string>
<string name="reports_last_uploaded">Reports last uploaded: %s</string>
<string name="reports_last_uploaded_never">never</string>
<string name="reports_empty">No reports yet</string>

<string name="start_scanning">Start scanning</string>

0 comments on commit 29a3390

Please sign in to comment.