[Enhancement] Disabling autofill for edittext
package com.mercadopago.customviews;
+import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
@@ -32,6 +33,12 @@ public class MPEditText extends AppCompatEditText {
}
}
+ @TargetApi(Build.VERSION_CODES.O)
+ @Override
+ public int getAutofillType() {
+ return AUTOFILL_TYPE_NONE;
+ }
+
private void setErrorColor(Context context, AttributeSet attrs, int defStyle) {
TypedArray typedArray = context.obtainStyledAttributes(attrs,
R.styleable.MPEditText, defStyle, 0);
