[Wi-Fi] [a11y] The "Advanced options" should be accessible by Voice Access and pronounced by talkback correctly.
The checkbox is unclickable via Accessibility. Solution: Refine the solution of b/30079196 to let checkbox be focusable and clickable by Accessibility, and remove unnecessary Accessibility pronunciation strings. Bug: 141588638 Bug: 141588161 Test: Add unit test to check the content description of the checkbox. Change-Id: I2e7932f64ae29a13b793276eab6705009af20104
This commit is contained in:
@@ -368,14 +368,14 @@
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/wifi_item"
|
||||
android:paddingBottom="4dp"
|
||||
android:importantForAccessibility="yes"
|
||||
android:contentDescription="@string/wifi_advanced_toggle_description_collapsed"
|
||||
android:importantForAccessibility="no"
|
||||
android:visibility="gone">
|
||||
<CheckBox android:id="@+id/wifi_advanced_togglebox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/wifi_advanced_toggle"
|
||||
android:importantForAccessibility="noHideDescendants"
|
||||
android:importantForAccessibility="yes"
|
||||
android:contentDescription="@string/wifi_advanced_toggle_description"
|
||||
android:text="@string/wifi_show_advanced" />
|
||||
</LinearLayout>
|
||||
|
||||
|
@@ -1953,10 +1953,12 @@
|
||||
<!-- Dialog for Access Points --> <skip />
|
||||
<!-- Label to show/hide advanced options [CHAR LIMIT=40] -->
|
||||
<string name="wifi_show_advanced">Advanced options</string>
|
||||
<!-- Message for talkback to say when Advanced Options expanded [CHAR LIMIT=NONE] -->
|
||||
<string name="wifi_advanced_toggle_description_expanded">Drop down list Advanced Options. Double-tap to collapse.</string>
|
||||
<!-- Message for talkback to say when Advanced Options is collapsed [CHAR LIMIT=NONE] -->
|
||||
<string name="wifi_advanced_toggle_description_collapsed">Drop down list Advanced Options. Double-tap to expand.</string>
|
||||
<!-- Message for talkback to say when focus on Advanced Options[CHAR LIMIT=NONE] -->
|
||||
<string name="wifi_advanced_toggle_description">Drop down list Advanced Options</string>
|
||||
<!-- Extended message for talkback to say when Advanced Options is expanded. (e.g., Double-tap to collapse) [CHAR LIMIT=NONE] -->
|
||||
<string name="wifi_advanced_toggle_description_expanded">collapse</string>
|
||||
<!-- Extended message for talkback to say when Advanced Options is collapsed. (e.g., Double-tap to expand) [CHAR LIMIT=NONE] -->
|
||||
<string name="wifi_advanced_toggle_description_collapsed">expand</string>
|
||||
<!-- Label for the SSID of the network -->
|
||||
<string name="wifi_ssid">Network name</string>
|
||||
<!-- Hint for a text field to enter the SSID of a hidden wifi network. [CHAR LIMIT=35] -->
|
||||
|
Reference in New Issue
Block a user