aboutsummaryrefslogtreecommitdiff
path: root/autofill-parser
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-27 17:48:38 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-27 17:53:10 +0530
commit25ffacd21385d8ae48c9b781e8ff9a838a0dccb5 (patch)
tree64fad68a1596750111eb8f88a920537a766b4f79 /autofill-parser
parent8b97a4a3f1dc799d327dbb7ac631d266a7a986a4 (diff)
chore: suppress invalid suggestion
Diffstat (limited to 'autofill-parser')
-rw-r--r--autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt
index 08eab3ff..9d620fe6 100644
--- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt
+++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillScenario.kt
@@ -178,6 +178,9 @@ public sealed class AutofillScenario<out T : Any> {
public val hasFieldsToSave: Boolean
get() = fieldsToSave.isNotEmpty()
+ @Suppress(
+ "ConvertArgumentToSet"
+ ) // This is a single item List, Set conversion only adds overhead.
public val hasPasswordFieldsToSave: Boolean
get() = fieldsToSave.minus(listOfNotNull(username)).isNotEmpty()