Use translated Cancel/Copy phrases
This commit is contained in:
parent
bb0864f16f
commit
e8b4e7247c
|
@ -361,8 +361,8 @@ class KeyguardClipboardService : Service(), DIAware {
|
||||||
}
|
}
|
||||||
|
|
||||||
val contentTitle = when (type) {
|
val contentTitle = when (type) {
|
||||||
CopyValueEvent.Type.TOTP -> "Copied a one-time password"
|
CopyValueEvent.Type.TOTP -> getString(R.string.copied_otp_code)
|
||||||
CopyValueEvent.Type.VALUE -> "Copied a value"
|
CopyValueEvent.Type.VALUE -> getString(R.string.copied_value)
|
||||||
}
|
}
|
||||||
val contentText = kotlin.run {
|
val contentText = kotlin.run {
|
||||||
val suffix = expiration
|
val suffix = expiration
|
||||||
|
@ -388,7 +388,7 @@ class KeyguardClipboardService : Service(), DIAware {
|
||||||
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
|
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)
|
NotificationCompat.Action.Builder(R.drawable.ic_copy, copyTitle, copyAction)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
@ -405,7 +405,7 @@ class KeyguardClipboardService : Service(), DIAware {
|
||||||
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
|
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)
|
NotificationCompat.Action.Builder(R.drawable.ic_cancel, cancelTitle, cancelAction)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@ class AttachmentDownloadWorker(
|
||||||
PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT,
|
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)
|
NotificationCompat.Action.Builder(R.drawable.ic_cancel, cancelTitle, cancelAction)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue