diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-04-24 16:38:30 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-04-24 16:47:51 +0530 |
commit | 5bad2a7256db36135070f5e628c045fbb9e79cb9 (patch) | |
tree | 214a26b74da15c09f60b029cf87510c991284416 | |
parent | f1556242fa7b5a866477a2f2223ca6321550676b (diff) |
app: address LabelFor lint
-rw-r--r-- | app/lint-baseline.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_pwgen.xml | 1 |
2 files changed, 1 insertions, 11 deletions
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index d3cdacc4..b4558863 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -2,17 +2,6 @@ <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=" <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." errorLine1=" warningAppName.text = "“${packageManager.getApplicationLabel(appInfo)}”"" diff --git a/app/src/main/res/layout/fragment_pwgen.xml b/app/src/main/res/layout/fragment_pwgen.xml index e8cb68cb..edd5c8d5 100644 --- a/app/src/main/res/layout/fragment_pwgen.xml +++ b/app/src/main/res/layout/fragment_pwgen.xml @@ -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" /> |