From 041d1b29d1f87a692380a6e4719364eebe85a492 Mon Sep 17 00:00:00 2001 From: Mohammad Naseri Date: Fri, 10 Aug 2018 15:43:49 +0200 Subject: [PATCH] Passwords should be invisible to the accessibility services --- app/src/main/res/layout/entry_edit.xml | 2 ++ app/src/main/res/layout/entry_view_contents.xml | 1 + app/src/main/res/layout/password.xml | 1 + app/src/main/res/layout/set_password.xml | 2 ++ 4 files changed, 6 insertions(+) diff --git a/app/src/main/res/layout/entry_edit.xml b/app/src/main/res/layout/entry_edit.xml index ed4ec19f4..5b0f536b6 100644 --- a/app/src/main/res/layout/entry_edit.xml +++ b/app/src/main/res/layout/entry_edit.xml @@ -110,6 +110,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textPassword" + android:importantForAccessibility="no" android:maxLines="1" android:hint="@string/entry_password" /> @@ -130,6 +131,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textPassword" + android:importantForAccessibility="no" android:maxLines="1" android:hint="@string/entry_confpassword" /> diff --git a/app/src/main/res/layout/entry_view_contents.xml b/app/src/main/res/layout/entry_view_contents.xml index d5f80ef6f..b36495804 100644 --- a/app/src/main/res/layout/entry_view_contents.xml +++ b/app/src/main/res/layout/entry_view_contents.xml @@ -80,6 +80,7 @@ android:layout_height="wrap_content" android:scrollHorizontally="true" android:inputType="textPassword" + android:importantForAccessibility="no" android:focusable="false" android:lines="1" style="@style/KeepassDXStyle.TextAppearance.TextEntryItem" /> diff --git a/app/src/main/res/layout/password.xml b/app/src/main/res/layout/password.xml index 11c4b941d..185a9c575 100644 --- a/app/src/main/res/layout/password.xml +++ b/app/src/main/res/layout/password.xml @@ -135,6 +135,7 @@ android:layout_height="wrap_content" android:hint="@string/password" android:inputType="textPassword" + android:importantForAccessibility="no" android:imeOptions="actionDone" android:maxLines="1"/> diff --git a/app/src/main/res/layout/set_password.xml b/app/src/main/res/layout/set_password.xml index 036d5fbca..304ef2d62 100644 --- a/app/src/main/res/layout/set_password.xml +++ b/app/src/main/res/layout/set_password.xml @@ -60,6 +60,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textPassword" + android:importantForAccessibility="no" android:maxLines="1" android:hint="@string/hint_pass"/> @@ -73,6 +74,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textPassword" + android:importantForAccessibility="no" android:maxLines="1" android:hint="@string/hint_conf_pass"/>