| 2 |
| 3 | import android.annotation.TargetApi; |
| 4 | import android.content.Context; |
| 5 | import android.os.Build; |
| 6 | import android.view.View; |
| 7 |
| 8 | import org.telegram.ui.Components.EditTextBoldCursor; |
| 9 |
| 10 | public class EditTextAutoFill extends EditTextBoldCursor { |
| 11 | public EditTextAutoFill(Context context) { |
| 12 | super(context); |
| 13 | if (Build.VERSION.SDK_INT >= 26) { |
| 14 | setImportantForAutofill(View.IMPORTANT_FOR_AUTOFILL_YES); |
| 15 | setAutofillHints(View.AUTOFILL_HINT_PASSWORD); |
| 16 | } |
| 17 | } |
| 18 |
| 19 | @TargetApi(Build.VERSION_CODES.O) |
| 20 | @Override |
| 21 | public int getAutofillType() { |
| 22 | return AUTOFILL_TYPE_TEXT; |
| 23 | } |
| 24 | } |
| 25 |