app: address LabelFor lint

This commit is contained in:
Harsh Shandilya 2022-04-24 16:38:30 +05:30
parent f1556242fa
commit 5bad2a7256
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 1 additions and 11 deletions

View file

@ -1,17 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.1.3" type="baseline" client="gradle" dependencies="false" name="AGP (7.1.3)" variant="all" version="7.1.3">
<issue
id="LabelFor"
message="Missing accessibility label: provide either a view with an `android:labelFor` that references this view or provide an `android:hint`"
errorLine1=" &lt;EditText"
errorLine2=" ~~~~~~~~">
<location
file="src/main/res/layout/fragment_pwgen.xml"
line="90"
column="10"/>
</issue>
<issue
id="SetTextI18n"
message="Do not concatenate text displayed with `setText`. Use resource string with placeholders."

View file

@ -84,6 +84,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:labelFor="@id/lengthNumber"
android:text="@string/pwgen_length"
android:textAppearance="?android:attr/textAppearanceSmall" />