Disable autofilling in editor view

This commit is contained in:
Sergey Solovyev 2018-04-29 22:57:04 +02:00
parent e12ff7f701
commit da8d974ad9
2 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,11 @@ public class EditorView extends EditTextCompat {
editor.setSelection(start);
}
@Override
public int getAutofillType() {
return AUTOFILL_TYPE_NONE;
}
private class MyTextWatcher implements TextWatcher {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {

View File

@ -73,6 +73,7 @@
<item name="android:paddingLeft">3dp</item>
<item name="android:paddingTop">3dp</item>
<item name="android:paddingBottom">3dp</item>
<item name="android:importantForAutofill">no</item>
</style>
<style name="CppText.Display" parent="CppText">