From cfceb38ee72896dad3701dcf3f12d8480166e009 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 10 Jan 2022 00:31:03 +0530 Subject: Fix a bunch of Lint warnings and errors (#1655) * autofill-parser: add missing `@RequiresApi` annotations * app: remove unused strings and sync with Crowdin * app: remove unused chip_text_color selector * app: remove unused capitalization_type_values array * app: add `PendingIntent.FLAG_IMMUTABLE` flag where required --- .../com/github/androidpasswordstore/autofillparser/AutofillScenario.kt | 2 ++ .../github/androidpasswordstore/autofillparser/AutofillStrategyDsl.kt | 1 + 2 files changed, 3 insertions(+) (limited to 'autofill-parser') 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 fec33285..66ef6d0e 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 @@ -204,6 +204,7 @@ internal data class GenericAutofillScenario( get() = genericPassword } +@RequiresApi(Build.VERSION_CODES.O) internal fun AutofillScenario.passesOriginCheck(singleOriginMode: Boolean): Boolean { return if (singleOriginMode) { // In single origin mode, only the browsers URL bar (which is never filled) should have @@ -235,6 +236,7 @@ public fun Dataset.Builder.fillWith( } } +@RequiresApi(Build.VERSION_CODES.O) internal inline fun AutofillScenario.map( transform: (T) -> S ): AutofillScenario { diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillStrategyDsl.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillStrategyDsl.kt index 6d2414d2..9348fab8 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillStrategyDsl.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/AutofillStrategyDsl.kt @@ -432,5 +432,6 @@ internal class AutofillStrategy private constructor(private val rules: List Unit) = AutofillStrategy.Builder().apply(block).build() -- cgit v1.2.3