Since Android 8 to 13, when you want to disable Password Manager's saving password we only need to include this:
android:importantForAutofill="no"
But it seems something changed in Android 14 and that autofield exclusion doesn't work.
I also tried to include
android:importantForAutofill="noExcludeDescendants"
on the parent's layout.
Also, I tried to remove android:inputType="textEmailAddress"
and android:inputType="textPassword"
in the TextInputEditText, but it also doesn't work.
This is the dialog that is shown in Android 14.
I got the same bug also.
I used
I tried also to use:
but there was no change. The autofill was still working.
EDIT It seems like that I found a working solution:
Create your own EditText Class and do following:
I got the solution from here:
https://stackoverflow.com/a/46698028/7655782