Use translated Cancel/Copy phrases

This commit is contained in:
Artem Chepurnoy 2023-12-31 14:54:34 +02:00
parent bb0864f16f
commit e8b4e7247c
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
2 changed files with 5 additions and 5 deletions

View File

@ -361,8 +361,8 @@ class KeyguardClipboardService : Service(), DIAware {
}
val contentTitle = when (type) {
CopyValueEvent.Type.TOTP -> "Copied a one-time password"
CopyValueEvent.Type.VALUE -> "Copied a value"
CopyValueEvent.Type.TOTP -> getString(R.string.copied_otp_code)
CopyValueEvent.Type.VALUE -> getString(R.string.copied_value)
}
val contentText = kotlin.run {
val suffix = expiration
@ -388,7 +388,7 @@ class KeyguardClipboardService : Service(), DIAware {
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
}
val copyTitle = "Copy"
val copyTitle = getString(R.string.copy)
NotificationCompat.Action.Builder(R.drawable.ic_copy, copyTitle, copyAction)
.build()
}
@ -405,7 +405,7 @@ class KeyguardClipboardService : Service(), DIAware {
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
}
val cancelTitle = "Cancel"
val cancelTitle = getString(android.R.string.cancel)
NotificationCompat.Action.Builder(R.drawable.ic_cancel, cancelTitle, cancelAction)
.build()
}

View File

@ -257,7 +257,7 @@ class AttachmentDownloadWorker(
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
)
}
val cancelTitle = "Cancel"
val cancelTitle = applicationContext.getString(android.R.string.cancel)
NotificationCompat.Action.Builder(R.drawable.ic_cancel, cancelTitle, cancelAction)
.build()
}