From 1fb5dc0d985044bcb019e339b35b6692a13b095e Mon Sep 17 00:00:00 2001 From: Aitorbp Date: Thu, 22 Aug 2024 07:31:15 +0100 Subject: [PATCH] fix: sort by name correctly --- .../owncloud/android/presentation/files/SortOptionsView.kt | 5 +++-- owncloudApp/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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