From 8e905d2f15d2491679b5d3427da87bc71b9a86d3 Mon Sep 17 00:00:00 2001 From: William Durand Date: Thu, 8 Feb 2024 10:47:17 +0100 Subject: [PATCH] Bug 1870345 - Mark headings as such in the list of add-ons --- .../components/feature/addons/ui/AddonsManagerAdapter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android-components/components/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonsManagerAdapter.kt b/android-components/components/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonsManagerAdapter.kt index 5eede548e3bd..4ed1ad119614 100644 --- a/android-components/components/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonsManagerAdapter.kt +++ b/android-components/components/feature/addons/src/main/java/mozilla/components/feature/addons/ui/AddonsManagerAdapter.kt @@ -18,6 +18,7 @@ import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.annotation.VisibleForTesting import androidx.core.content.ContextCompat +import androidx.core.view.ViewCompat import androidx.core.view.isInvisible import androidx.core.view.isVisible import androidx.recyclerview.widget.DiffUtil @@ -198,6 +199,7 @@ class AddonsManagerAdapter( @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE) internal fun bindSection(holder: SectionViewHolder, section: Section, position: Int) { holder.titleView.setText(section.title) + ViewCompat.setAccessibilityHeading(holder.titleView, true) style?.let { holder.divider.isVisible = it.visibleDividers && position != 0