From e9d93194f15f58c3ce10e132b6fc244de4c8f5bb Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Wed, 18 May 2022 09:48:34 +0200 Subject: [PATCH] Adding comments on some strings and removing non necessary plural --- .../main/java/im/vector/app/core/utils/TextUtils.kt | 2 +- .../detail/timeline/item/MessageLiveLocationItem.kt | 1 - vector/src/main/res/values/strings.xml | 11 ++++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vector/src/main/java/im/vector/app/core/utils/TextUtils.kt b/vector/src/main/java/im/vector/app/core/utils/TextUtils.kt index 80dabd5021..d2f8c4022b 100644 --- a/vector/src/main/java/im/vector/app/core/utils/TextUtils.kt +++ b/vector/src/main/java/im/vector/app/core/utils/TextUtils.kt @@ -118,7 +118,7 @@ object TextUtils { private fun appendHours(context: Context, builder: StringBuilder, hours: Int) { builder.append(hours) - builder.append(context.resources.getQuantityString(R.plurals.time_unit_hour_short, hours)) + builder.append(context.resources.getString(R.string.time_unit_hour_short)) } private fun appendMinutes(context: Context, builder: StringBuilder, minutes: Int) { diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt index daca48e7aa..838fbd46de 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageLiveLocationItem.kt @@ -57,7 +57,6 @@ abstract class MessageLiveLocationItem : AbsMessageLocationItemStart Chatting Spaces - - - hour - hours - + + h + min + sec @@ -3024,8 +3023,10 @@ Loading live location… Live location ended View live location + Live until %1$s Stop + %1$s left ${app_name} Live Location Location sharing is in progress