diff --git a/owncloudApp/src/main/java/com/owncloud/android/presentation/files/SortOptionsView.kt b/owncloudApp/src/main/java/com/owncloud/android/presentation/files/SortOptionsView.kt
index 319fbd2617b..4b433b7243c 100644
--- a/owncloudApp/src/main/java/com/owncloud/android/presentation/files/SortOptionsView.kt
+++ b/owncloudApp/src/main/java/com/owncloud/android/presentation/files/SortOptionsView.kt
@@ -99,10 +99,11 @@ class SortOptionsView @JvmOverloads constructor(
ViewCompat.setAccessibilityDelegate(binding.sortTypeSelector, object : AccessibilityDelegateCompat() {
override fun onInitializeAccessibilityNodeInfo(v: View, info: AccessibilityNodeInfoCompat) {
super.onInitializeAccessibilityNodeInfo(v, info)
+ val sortTitleText = binding.sortTypeTitle.text
if (sortOrderSelected == SORT_ORDER_ASCENDING) {
- binding.sortTypeTitle.contentDescription = context.getString(R.string.content_description_sort_by_name_ascending)
+ binding.sortTypeTitle.contentDescription = context.getString(R.string.content_description_sort_by_name_ascending, sortTitleText)
} else {
- binding.sortTypeTitle.contentDescription = context.getString(R.string.content_description_sort_by_name_descending)
+ binding.sortTypeTitle.contentDescription = context.getString(R.string.content_description_sort_by_name_descending, sortTitleText)
}
}
})
diff --git a/owncloudApp/src/main/res/values/strings.xml b/owncloudApp/src/main/res/values/strings.xml
index 6db70aca1d2..2a83293e096 100644
--- a/owncloudApp/src/main/res/values/strings.xml
+++ b/owncloudApp/src/main/res/values/strings.xml
@@ -804,8 +804,8 @@
Edit share
Delete share
%1$s operations
- Sort by name ascending
- sort by name descending
+ Sort by %1$s ascending
+ sort by %1$s descending
Create a shortcut
URL