fix accessibility labels

This commit is contained in:
lucky 2022-01-08 12:19:50 +03:00
parent c9dcd3a523
commit 7571ac9609
3 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,6 @@
android:id="@+id/description"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:labelFor="@id/toggle"
android:text="@string/description"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -82,7 +81,6 @@
android:id="@+id/description2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:labelFor="@id/maxFailedPasswordAttempts"
android:text="@string/max_failed_password_attempts_description" />
<Space
@ -94,6 +92,7 @@
android:id="@+id/maxFailedPasswordAttempts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:contentDescription="@string/max_failed_password_attempts_content_description"
android:valueFrom="0"
android:valueTo="10"
android:stepSize="1.0" />

View File

@ -14,4 +14,5 @@
<string name="tile_label">Разблокировать устройство</string>
<string name="shortcut_label">Паниковать</string>
<string name="max_failed_password_attempts_description">Также Вы можете установить лимит на максимальное количество неудачных попыток ввода пароля. После исчерпания лимита данные на устройстве будут стёрты.</string>
<string name="max_failed_password_attempts_content_description">Количество</string>
</resources>

View File

@ -14,4 +14,5 @@
<string name="tile_label">Unlock device</string>
<string name="shortcut_label">Panic</string>
<string name="max_failed_password_attempts_description">Also you can limit the maximum number of failed password attempts. After the limit exceeded device will be wiped.</string>
<string name="max_failed_password_attempts_content_description">Count</string>
</resources>