mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-18 19:19:33 +01:00
fix wrong plurals implementation
- key was duplicated - kotlin handling of plurals was missing Signed-off-by: Marcel Hibbe <dev@mhibbe.de> [skip ci]
This commit is contained in:
parent
d1b3e7cb4d
commit
e15957357a
@ -1238,8 +1238,9 @@ class ChatActivity :
|
||||
val deleteNoticeText = binding.conversationDeleteNotice.findViewById<TextView>(R.id.deletion_message)
|
||||
viewThemeUtils.material.themeCardView(binding.conversationDeleteNotice)
|
||||
|
||||
deleteNoticeText.text = String.format(
|
||||
resources.getString(R.string.nc_conversation_auto_delete_notice),
|
||||
deleteNoticeText.text = resources.getQuantityString(
|
||||
R.plurals.nc_conversation_auto_delete_info,
|
||||
retentionPeriod,
|
||||
retentionPeriod
|
||||
)
|
||||
viewThemeUtils.material.colorMaterialButtonPrimaryTonal(
|
||||
|
@ -19,7 +19,6 @@
|
||||
android:id="@+id/deletion_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/nc_conversation_auto_delete_notice"
|
||||
android:textSize="14sp"
|
||||
android:lineSpacingExtra="4dp"
|
||||
android:gravity="center"
|
||||
|
Loading…
Reference in New Issue
Block a user