From 95cbd419bd54b132fc577354d771e84c7ffceae9 Mon Sep 17 00:00:00 2001 From: Jose Rubio Date: Mon, 1 Jul 2024 17:51:32 +0200 Subject: [PATCH] ANDROID-14887 update set BottomSheet title as Heading for a11y (#369) --- library/src/main/java/com/telefonica/mistica/sheet/Sheet.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/library/src/main/java/com/telefonica/mistica/sheet/Sheet.kt b/library/src/main/java/com/telefonica/mistica/sheet/Sheet.kt index f69eee346..1bade1711 100644 --- a/library/src/main/java/com/telefonica/mistica/sheet/Sheet.kt +++ b/library/src/main/java/com/telefonica/mistica/sheet/Sheet.kt @@ -101,6 +101,7 @@ open class SheetView( handler.setOnClickListener { cancel() } title.setTextOrHide(titleText) + ViewCompat.setAccessibilityHeading(title, true) titleSpace.setSpaceOrGone(titleText) subtitle.setTextOrHide(subtitleText) description.setTextOrHide(descriptionText)