Fixed accessibility issues in Wi-Fi password view for SUW

- Keep the Save button enabled at all times

- Show "*required" or "The password is invalid" to remind the user

Bug: 386897596
Flag: EXEMPT bugfix
Test: Manual testing
  atest WifiConfigControllerTest
Change-Id: I442d2f958efd85f3c92309d0bed7cd3aa9ec9876
This commit is contained in:
Weng Su
2025-03-12 20:46:49 +08:00
parent 9066ecf68a
commit 351e6a94e0
9 changed files with 146 additions and 103 deletions

View File

@@ -62,6 +62,8 @@
android:layout_weight="1"
android:hint="@string/wifi_ssid"
android:textDirection="locale"
app:helperTextEnabled="true"
app:helperText="@string/wifi_field_required"
app:endIconMode="clear_text">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/ssid"
@@ -345,6 +347,8 @@
android:id="@+id/password_input_layout"
style="@style/Widget.Network.TextInputLayout.WifiConfig"
android:hint="@string/wifi_password"
app:helperTextEnabled="true"
app:helperText="@string/wifi_field_required"
app:endIconMode="password_toggle">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/password"