Skip to content

Commit

Permalink
feat: Added contentDescription to viewTypeSelector in SortOptionsView
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp authored and jesmrec committed Sep 24, 2024
1 parent a2ef994 commit ca7eca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class SortOptionsView @JvmOverloads constructor(
AdditionalView.CREATE_FOLDER -> {
binding.viewTypeSelector.apply {
visibility = VISIBLE
contentDescription = context.getString(R.string.content_description_create_new_folder)
setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_action_create_dir))
setOnClickListener {
onCreateFolderListener?.onCreateFolderListener()
Expand All @@ -125,6 +126,7 @@ class SortOptionsView @JvmOverloads constructor(
viewTypeSelected = viewTypeSelected
binding.viewTypeSelector.apply {
visibility = VISIBLE
contentDescription = context.getString(R.string.content_description_type_view)
setOnClickListener {
onSortOptionsListener?.onViewTypeListener(
viewTypeSelected.getOppositeViewType()
Expand Down
1 change: 1 addition & 0 deletions owncloudApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@
<string name="content_description_file_operations">%1$s operations</string>
<string name="content_description_sort_by_name_ascending">Sort by %1$s ascending</string>
<string name="content_description_sort_by_name_descending">Sort by %1$s descending</string>
<string name="content_description_create_new_folder">Create new folder</string>

<string name="create_shortcut_dialog_title">Create a shortcut</string>
<string name="create_shortcut_dialog_url">URL</string>
Expand Down

0 comments on commit ca7eca3

Please sign in to comment.