Replace restore completion string with plurals

This commit is contained in:
arkon
2020-05-08 18:07:21 -04:00
parent 5b53b90495
commit fb97ac47bc
2 changed files with 5 additions and 2 deletions

View File

@ -137,7 +137,7 @@ internal class BackupNotifier(private val context: Context) {
with(completeNotificationBuilder) {
setContentTitle(context.getString(R.string.restore_completed))
setContentText(context.getString(R.string.restore_completed_content, timeString, errorCount))
setContentText(context.resources.getQuantityString(R.plurals.restore_completed_message, errorCount, timeString, errorCount))
// Clear old actions if they exist
if (mActions.isNotEmpty()) {