From da8d974ad91dc24d4c82655f1d9ac4b68f2afab1 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Sun, 29 Apr 2018 22:57:04 +0200 Subject: [PATCH] Disable autofilling in editor view --- .../java/org/solovyev/android/calculator/EditorView.java | 5 +++++ app/src/main/res/values/styles.xml | 1 + 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/org/solovyev/android/calculator/EditorView.java b/app/src/main/java/org/solovyev/android/calculator/EditorView.java index 2f928218..50d84c49 100644 --- a/app/src/main/java/org/solovyev/android/calculator/EditorView.java +++ b/app/src/main/java/org/solovyev/android/calculator/EditorView.java @@ -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) { diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 8977e74d..9decfad2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -73,6 +73,7 @@ 3dp 3dp 3dp + no