Friday 23 April 2021

Disabling Android O auto-fill service for an application

So I have my own class which is extends the android.support.v7.widget.AppCompatEditText
 and all I did is overwrote the following method with the following value:


@Override
public int getAutofillType() {
return AUTOFILL_TYPE_NONE;
}

no other solutions worked, not even android:importantForAutofill="no".

getAutofillType() comes from the View class, so it should work for every other
class such as TextInputEditText too!

No comments:

Post a Comment