From a61f6e8f93c62845f0af04ed4cda50982b4e3047 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 10 Oct 2018 15:18:12 +0200 Subject: [PATCH] add autofill hints Signed-off-by: tobiasKaminsky --- src/main/res/layout-land/account_setup.xml | 111 +++++++++--------- src/main/res/layout/account_setup.xml | 29 +++-- src/main/res/layout/edit_box_dialog.xml | 5 +- src/main/res/layout/passcodelock.xml | 6 +- src/main/res/layout/password_dialog.xml | 5 +- .../res/layout/setup_encryption_dialog.xml | 3 +- src/main/res/layout/upload_file_dialog.xml | 1 + 7 files changed, 88 insertions(+), 72 deletions(-) diff --git a/src/main/res/layout-land/account_setup.xml b/src/main/res/layout-land/account_setup.xml index 06df2f249a..5b81e33b7a 100644 --- a/src/main/res/layout-land/account_setup.xml +++ b/src/main/res/layout-land/account_setup.xml @@ -41,7 +41,7 @@ android:src="@drawable/logo" android:contentDescription="@string/app_name" /> - + - - + - + + android:id="@+id/oAuthEntryPoint_1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:enabled="false" + android:hint="@string/oauth_2_0_auth_end_point_address_hint" + android:inputType="textUri" + android:maxLines="1" + android:text="@string/oauth2_url_endpoint_auth" + android:textColor="@color/login_text_color" + android:textColorHint="@color/login_text_hint_color" + android:importantForAutofill="no" + android:visibility="gone" /> @@ -196,18 +198,19 @@ android:layout_height="wrap_content"> + android:id="@+id/oAuthEntryPoint_2" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:enabled="false" + android:hint="@string/oauth_2_0_access_end_point_address_hint" + android:inputType="textUri" + android:maxLines="1" + android:text="@string/oauth2_url_endpoint_access" + android:textColor="@color/login_text_color" + android:textColorHint="@color/login_text_hint_color" + android:importantForAutofill="no" + android:visibility="gone" /> @@ -218,14 +221,15 @@ android:visibility="gone"> + android:id="@+id/account_username" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ems="10" + android:hint="@string/auth_username" + android:inputType="textNoSuggestions" + android:textColor="@color/login_text_color" + android:textColorHint="@color/login_text_hint_color" + android:autofillHints="username"/> @@ -246,11 +250,12 @@ android:hint="@string/auth_password" android:inputType="textPassword" android:textColor="@color/login_text_color" - android:textColorHint="@color/login_text_hint_color"/> + android:textColorHint="@color/login_text_hint_color" + android:autofillHints="password"/> - - - - - + + + - - - + diff --git a/src/main/res/layout/account_setup.xml b/src/main/res/layout/account_setup.xml index 51663f2e8e..dfeaadbaa6 100644 --- a/src/main/res/layout/account_setup.xml +++ b/src/main/res/layout/account_setup.xml @@ -19,13 +19,13 @@ along with this program. If not, see . --> - + - + android:visibility="gone" + android:importantForAutofill="no"/> @@ -201,6 +202,7 @@ android:text="@string/oauth2_url_endpoint_access" android:textColor="@color/login_text_color" android:textColorHint="@color/login_text_hint_color" + android:importantForAutofill="no" android:visibility="gone" /> @@ -220,7 +222,8 @@ android:hint="@string/auth_username" android:inputType="textNoSuggestions" android:textColor="@color/login_text_color" - android:textColorHint="@color/login_text_hint_color"/> + android:textColorHint="@color/login_text_hint_color" + android:autofillHints="username"/> @@ -243,7 +246,7 @@ android:inputType="textPassword" android:textColor="@color/login_text_color" android:textColorHint="@color/login_text_hint_color" - /> + android:autofillHints="password"/> - \ No newline at end of file + diff --git a/src/main/res/layout/edit_box_dialog.xml b/src/main/res/layout/edit_box_dialog.xml index 342d8baf93..7445bcc2a8 100644 --- a/src/main/res/layout/edit_box_dialog.xml +++ b/src/main/res/layout/edit_box_dialog.xml @@ -1,5 +1,5 @@ -