From 32b459ae77788a8e675b8492fc30ea4de7d02941 Mon Sep 17 00:00:00 2001 From: sk Date: Mon, 6 Feb 2023 16:54:54 +0100 Subject: [PATCH] hide expand/collapse to screen reader --- mastodon/src/main/res/layout/display_item_header.xml | 3 ++- mastodon/src/main/res/layout/display_item_text.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mastodon/src/main/res/layout/display_item_header.xml b/mastodon/src/main/res/layout/display_item_header.xml index c4b99be0b..be6903169 100644 --- a/mastodon/src/main/res/layout/display_item_header.xml +++ b/mastodon/src/main/res/layout/display_item_header.xml @@ -47,7 +47,8 @@ android:layout_height="36dp" android:layout_toStartOf="@id/visibility" android:background="?android:actionBarItemBackground" - android:visibility="gone"> + android:visibility="gone" + android:importantForAccessibility="noHideDescendants"> diff --git a/mastodon/src/main/res/layout/display_item_text.xml b/mastodon/src/main/res/layout/display_item_text.xml index af3775173..6553146c9 100644 --- a/mastodon/src/main/res/layout/display_item_text.xml +++ b/mastodon/src/main/res/layout/display_item_text.xml @@ -79,7 +79,8 @@ android:textAppearance="@style/m3_label_medium" android:textAllCaps="true" android:text="@string/sk_expand" - android:visibility="gone" /> + android:visibility="gone" + android:importantForAccessibility="no"/>