diff options
author | pacien | 2020-09-08 20:29:49 +0200 |
---|---|---|
committer | pacien | 2020-09-08 20:29:49 +0200 |
commit | 8e2e04233a4bbb00cd780830769d5237f085dd02 (patch) | |
tree | 26c47e9e3121e5669f2b581aafea42a385a4bc26 /app/src/main/res/layout/configure_tools_dialog_network_join.xml | |
parent | ac79c601bd7fc379d7f857f3f0a716cce30e4b52 (diff) | |
download | tincapp-8e2e04233a4bbb00cd780830769d5237f085dd02.tar.gz |
layout: mark config and password fields as unimportant for auto-fill
Diffstat (limited to 'app/src/main/res/layout/configure_tools_dialog_network_join.xml')
-rw-r--r-- | app/src/main/res/layout/configure_tools_dialog_network_join.xml | 93 |
1 files changed, 48 insertions, 45 deletions
diff --git a/app/src/main/res/layout/configure_tools_dialog_network_join.xml b/app/src/main/res/layout/configure_tools_dialog_network_join.xml index 9171284..f3672b3 100644 --- a/app/src/main/res/layout/configure_tools_dialog_network_join.xml +++ b/app/src/main/res/layout/configure_tools_dialog_network_join.xml | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | <!-- | 3 | <!-- |
4 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon | 4 | * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon |
5 | * Copyright (C) 2017-2018 Pacien TRAN-GIRARD | 5 | * Copyright (C) 2017-2020 Pacien TRAN-GIRARD |
6 | * | 6 | * |
7 | * This program is free software: you can redistribute it and/or modify | 7 | * This program is free software: you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -20,59 +20,62 @@ | |||
20 | 20 | ||
21 | <layout xmlns:android="http://schemas.android.com/apk/res/android"> | 21 | <layout xmlns:android="http://schemas.android.com/apk/res/android"> |
22 | 22 | ||
23 | <data> | 23 | <data> |
24 | 24 | ||
25 | <variable | 25 | <variable |
26 | name="scanAction" | 26 | name="scanAction" |
27 | type="kotlin.jvm.functions.Function0<kotlin.Unit>"/> | 27 | type="kotlin.jvm.functions.Function0<kotlin.Unit>" /> |
28 | 28 | ||
29 | </data> | 29 | </data> |
30 | 30 | ||
31 | <LinearLayout | 31 | <LinearLayout |
32 | android:layout_width="match_parent" | 32 | android:layout_width="match_parent" |
33 | android:layout_height="wrap_content" | 33 | android:layout_height="wrap_content" |
34 | android:orientation="vertical" | 34 | android:orientation="vertical" |
35 | android:paddingBottom="@dimen/dialog_vertical_margin" | 35 | android:paddingLeft="@dimen/dialog_horizontal_margin" |
36 | android:paddingLeft="@dimen/dialog_horizontal_margin" | 36 | android:paddingTop="@dimen/dialog_vertical_margin" |
37 | android:paddingRight="@dimen/dialog_horizontal_margin" | 37 | android:paddingRight="@dimen/dialog_horizontal_margin" |
38 | android:paddingTop="@dimen/dialog_vertical_margin"> | 38 | android:paddingBottom="@dimen/dialog_vertical_margin"> |
39 | 39 | ||
40 | <EditText | 40 | <EditText |
41 | android:id="@+id/net_name" | 41 | android:id="@+id/net_name" |
42 | android:layout_width="match_parent" | 42 | android:layout_width="match_parent" |
43 | android:layout_height="wrap_content" | 43 | android:layout_height="wrap_content" |
44 | android:hint="@string/configure_tools_generate_config_net_name_hint" | 44 | android:hint="@string/configure_tools_generate_config_net_name_hint" |
45 | android:inputType="text"/> | 45 | android:importantForAutofill="no" |
46 | android:inputType="text" /> | ||
46 | 47 | ||
47 | <LinearLayout | 48 | <LinearLayout |
48 | android:layout_width="match_parent" | 49 | android:layout_width="match_parent" |
49 | android:layout_height="match_parent" | 50 | android:layout_height="match_parent" |
50 | android:orientation="horizontal"> | 51 | android:orientation="horizontal"> |
51 | 52 | ||
52 | <EditText | 53 | <EditText |
53 | android:id="@+id/invitation_url" | 54 | android:id="@+id/invitation_url" |
54 | android:layout_width="0dp" | 55 | android:layout_width="0dp" |
55 | android:layout_height="wrap_content" | 56 | android:layout_height="wrap_content" |
56 | android:layout_weight="1" | 57 | android:layout_weight="1" |
57 | android:hint="@string/configure_tools_join_network_field_invitation_url_hint" | 58 | android:hint="@string/configure_tools_join_network_field_invitation_url_hint" |
58 | android:inputType="textUri"/> | 59 | android:importantForAutofill="no" |
60 | android:inputType="textUri" /> | ||
59 | 61 | ||
60 | <ImageButton | 62 | <ImageButton |
61 | android:layout_width="wrap_content" | 63 | android:layout_width="wrap_content" |
62 | android:layout_height="match_parent" | 64 | android:layout_height="match_parent" |
63 | android:contentDescription="@string/configure_tools_join_network_action_scan_qr_code_action" | 65 | android:contentDescription="@string/configure_tools_join_network_action_scan_qr_code_action" |
64 | android:onClick="@{() -> scanAction.invoke()}" | 66 | android:onClick="@{() -> scanAction.invoke()}" |
65 | android:src="@drawable/ic_photo_camera_primary_24dp"/> | 67 | android:src="@drawable/ic_photo_camera_primary_24dp" /> |
66 | 68 | ||
67 | </LinearLayout> | 69 | </LinearLayout> |
68 | 70 | ||
69 | <EditText | 71 | <EditText |
70 | android:id="@+id/join_passphrase" | 72 | android:id="@+id/join_passphrase" |
71 | android:layout_width="match_parent" | 73 | android:layout_width="match_parent" |
72 | android:layout_height="match_parent" | 74 | android:layout_height="match_parent" |
73 | android:hint="@string/configure_tools_generate_config_optional_passphrase_hint" | 75 | android:hint="@string/configure_tools_generate_config_optional_passphrase_hint" |
74 | android:inputType="textVisiblePassword"/> | 76 | android:importantForAutofill="no" |
77 | android:inputType="textVisiblePassword" /> | ||
75 | 78 | ||
76 | </LinearLayout> | 79 | </LinearLayout> |
77 | 80 | ||
78 | </layout> | 81 | </layout> |