Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Configurable password field autofilling #493

@strump

Description

@strump

Is your feature request related to a problem? Please describe.
I have Android 9 and see autofill prompt every time I enter PIN to unlock the app:
andotp_pin_autofill

After unlock is done I see save password prompt:
andotp_pin_autofill_prompt

Describe the solution you'd like
Simillar to New feature: "Block accessibility services from seeing sensitive input fields via a new settings item" from version 0.7.0 it would be great to see "Disable autofill" checkbox in app settings.

To disable autofill next code could be used:

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
    passwordInput.setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_NO);
}

Describe alternatives you've considered
It's possible to disable Android Oreo autifll system wide. But It's useful feature in other apps.

Additional context
View.setImportantForAutofill was added in API 26.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions