Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1870345 - Mark headings as such in the list of add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Feb 8, 2024
1 parent 710aeb6 commit 8e905d2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e905d2

Please sign in to comment.