From 059c5ed6c3bc0aaac9e8ec440471b9a15fe9a78b Mon Sep 17 00:00:00 2001 From: menghanli Date: Fri, 17 Apr 2020 16:45:37 +0800 Subject: [PATCH] Fix Auto click (dwell timing) does not speech out meaningful delay time in enlarge or scroll by volume key Root cause: does not speech out the auto click time when adjust the delay time Solution: Add android:accessibilityLiveRegion in the title of customized scroll view. When the delay time is changed, the text of title will changed, too. It can use the attribute to make accessibility services announce changes to this view. Bug: 154295215 Test: local test Change-Id: I1eceae310251c586bbb74185828da0ef49bfae99 --- res/layout/accessibility_autoclick_custom_seekbar.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layout/accessibility_autoclick_custom_seekbar.xml b/res/layout/accessibility_autoclick_custom_seekbar.xml index 283530bc0fc..df6d7c873a4 100644 --- a/res/layout/accessibility_autoclick_custom_seekbar.xml +++ b/res/layout/accessibility_autoclick_custom_seekbar.xml @@ -28,6 +28,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" + android:accessibilityLiveRegion="polite" android:textAppearance="@android:style/TextAppearance.DeviceDefault.Widget.TextView" />