diff options
Diffstat (limited to 'autofill-parser')
3 files changed, 5 insertions, 10 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 2670a77d..97419048 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 @@ -70,24 +70,21 @@ public sealed class AutofillScenario<out T : Any> { clientState, BUNDLE_KEY_CURRENT_PASSWORD_IDS, AutofillId::class.java - ) - ?: emptyList() + ) ?: emptyList() ) newPassword.addAll( BundleCompat.getParcelableArrayList( clientState, BUNDLE_KEY_NEW_PASSWORD_IDS, AutofillId::class.java - ) - ?: emptyList() + ) ?: emptyList() ) genericPassword.addAll( BundleCompat.getParcelableArrayList( clientState, BUNDLE_KEY_GENERIC_PASSWORD_IDS, AutofillId::class.java - ) - ?: emptyList() + ) ?: emptyList() ) } .build() 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 94cef6e5..0a75f078 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 @@ -430,8 +430,7 @@ internal class AutofillStrategy private constructor(private val rules: List<Auto possibleOtpFields, singleOriginMode = singleOriginMode, isManualRequest = isManualRequest - ) - ?: continue + ) ?: continue } return null } diff --git a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt index 9e28808e..f3696ffd 100644 --- a/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt +++ b/autofill-parser/src/main/java/com/github/androidpasswordstore/autofillparser/FeatureAndTrustDetection.kt @@ -238,8 +238,7 @@ private fun getBrowserAutofillSupportLevel( // browsers here. supportLevel != BrowserAutofillSupportLevel.GeneralFillAndSave && Build.VERSION.SDK_INT < Build.VERSION_CODES.P - } - ?: BrowserAutofillSupportLevel.None + } ?: BrowserAutofillSupportLevel.None } @RequiresApi(Build.VERSION_CODES.O) |