aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-04-24 16:38:30 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-04-24 16:47:51 +0530
commit5bad2a7256db36135070f5e628c045fbb9e79cb9 (patch)
tree214a26b74da15c09f60b029cf87510c991284416 /app
parentf1556242fa7b5a866477a2f2223ca6321550676b (diff)
app: address LabelFor lint
Diffstat (limited to 'app')
-rw-r--r--app/lint-baseline.xml11
-rw-r--r--app/src/main/res/layout/fragment_pwgen.xml1
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=" &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."
errorLine1=" warningAppName.text = &quot;“${packageManager.getApplicationLabel(appInfo)}”&quot;"
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" />