diff --git a/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt b/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
index 4d947aca..c5da7255 100644
--- a/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
+++ b/core/src/main/java/com/nextcloud/android/common/core/utils/DateFormatter.kt
@@ -62,10 +62,11 @@ class DateFormatter(
// less than 1h
span < ONE_HOUR_IN_MILLIS -> {
- context.getString(
- R.string.date_formatting_relative_minutes,
- span / ONE_MINUTE_IN_MILLIS
- )
+ context.resources
+ .getQuantityString(
+ R.plurals.date_formatting_relative_minutes,
+ span.toInt() / ONE_MINUTE_IN_MILLIS
+ )
}
// less than 1d
diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml
index 9080923c..b38b3f67 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -9,7 +9,10 @@
Now
- %dm
+
+ - %dm
+ - %dm
+
- %dh
diff --git a/core/src/test/java/com/nextcloud/android/common/core/utils/DateFormatterTest.kt b/core/src/test/java/com/nextcloud/android/common/core/utils/DateFormatterTest.kt
index 5f1ee776..7731dfb6 100644
--- a/core/src/test/java/com/nextcloud/android/common/core/utils/DateFormatterTest.kt
+++ b/core/src/test/java/com/nextcloud/android/common/core/utils/DateFormatterTest.kt
@@ -53,7 +53,7 @@ class DateFormatterTest {
val calendar = Calendar.getInstance()
calendar.add(Calendar.MINUTE, -5)
val formattedDate = dateFormatter.getConditionallyRelativeFormattedTimeSpan(calendar)
- val expected = context.getString(R.string.date_formatting_relative_minutes, 5)
+ val expected = context.resources.getQuantityString(R.plurals.date_formatting_relative_minutes, 5)
assertEquals(expected, formattedDate)
}
diff --git a/ui/build.gradle b/ui/build.gradle
index 3d1b4d99..10efcb19 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -47,7 +47,7 @@ android {
dependencies {
kapt "org.jetbrains.kotlin:kotlin-metadata-jvm:${kotlinVersion}"
- implementation(platform("androidx.compose:compose-bom:2026.06.01"))
+ implementation(platform("androidx.compose:compose-bom:2026.08.00"))
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.material3:material3")