aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/dialog_decrypt_keys.xml17
-rw-r--r--app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml30
-rw-r--r--app/src/main/res/layout/dialog_network_generate.xml7
-rw-r--r--app/src/main/res/layout/dialog_network_join.xml7
-rw-r--r--app/src/main/res/layout/page_configure.xml16
-rw-r--r--app/src/main/res/values/strings.xml13
6 files changed, 86 insertions, 4 deletions
</
diff --git a/app/src/main/res/layout/dialog_decrypt_keys.xml b/app/src/main/res/layout/dialog_decrypt_keys.xml
new file mode 100644
index 0000000..b8a3586
--- /dev/null
+++ b/app/src/main/res/layout/dialog_decrypt_keys.xml
@@ -0,0 +1,17 @@
1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 android:layout_width="match_parent"
3 android:layout_height="wrap_content"
4 android:orientation="vertical"
5 android:paddingBottom="@dimen/dialog_vertical_margin"
6 android:paddingLeft="@dimen/dialog_horizontal_margin"
7 android:paddingRight="@dimen/dialog_horizontal_margin"
8 android:paddingTop="@dimen/dialog_vertical_margin">
9
10 <EditText
11 android:id="@+id/passphrase"
12 android:layout_width="match_parent"
13 android:layout_height="match_parent"
14 android:hint="@string/field_passphrase"
15 android:inputType="textPassword"/>
16
17</LinearLayout>
diff --git a/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml b/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
new file mode 100644
index 0000000..1f20d9b
--- /dev/null
+++ b/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
@@ -0,0 +1,30 @@
1<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 android:layout_width="match_parent"
3 android:layout_height="wrap_content"
4 android:orientation="vertical"
5 android:paddingBottom="@dimen/dialog_vertical_margin"
6 android:paddingLeft="@dimen/dialog_horizontal_margin"
7 android:paddingRight="@dimen/dialog_horizontal_margin"
8 android:paddingTop="@dimen/dialog_vertical_margin">
9
10 <EditText
11 android:id="@+id/enc_dec_net_name"
12 android:layout_width="match_parent"
13 android:layout_height="wrap_content"
14 android:hint="@string/field_net_name"/>
15
16 <EditText
17 android:id="@+id/enc_dec_current_passphrase"
18 android:layout_width="match_parent"
19 android:layout_height="match_parent"
20 android:hint="@string/field_current_passphrase"
21 android:inputType="textVisiblePassword"/>
22
23 <EditText
24 android:id="@+id/enc_dec_new_passphrase"
25 android:layout_width="match_parent"
26 android:layout_height="match_parent"
27 android:hint="@string/field_new_passphrase"
28 android:inputType="textVisiblePassword"/>
29
30</LinearLayout>
diff --git a/app/src/main/res/layout/dialog_network_generate.xml b/app/src/main/res/layout/dialog_network_generate.xml
index cc51b7b..d849ca1 100644
--- a/app/src/main/res/layout/dialog_network_generate.xml
+++ b/app/src/main/res/layout/dialog_network_generate.xml
@@ -19,4 +19,11 @@
19 android:layout_height="match_parent" 19 android:layout_height="match_parent"
20 android:hint="@string/field_node_name"/> 20 android:hint="@string/field_node_name"/>
21 21
22 <EditText
23 android:id="@+id/new_passphrase"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent"
26 android:hint="@string/field_optional_passphrase"
27 android:inputType="textVisiblePassword"/>
28
22</LinearLayout> 29</LinearLayout>
diff --git a/app/src/main/res/layout/dialog_network_join.xml b/app/src/main/res/layout/dialog_network_join.xml
index 2d23d4b..7bc8804 100644
--- a/app/src/main/res/layout/dialog_network_join.xml
+++ b/app/src/main/res/layout/dialog_network_join.xml
@@ -34,4 +34,11 @@
34 34
35 </LinearLayout> 35 </LinearLayout>
36 36
37 <EditText
38 android:id="@+id/join_passphrase"
39 android:layout_width="match_parent"
40 android:layout_height="match_parent"
41 android:hint="@string/field_optional_passphrase"
42 android:inputType="textVisiblePassword"/>
43
37</LinearLayout> 44</LinearLayout>
diff --git a/app/src/main/res/layout/page_configure.xml b/app/src/main/res/layout/page_configure.xml
index e094f7e..4f92b07 100644
--- a/app/src/main/res/layout/page_configure.xml
+++ b/app/src/main/res/layout/page_configure.xml
@@ -26,7 +26,7 @@
26 <TextView 26 <TextView
27 android:id="@+id/text_configuration_directory" 27 android:id="@+id/text_configuration_directory"
28 style="@style/AppTheme.BlockContent" 28 style="@style/AppTheme.BlockContent"
29 android:textIsSelectable="true" /> 29 android:textIsSelectable="true"/>
30 30
31 </LinearLayout> 31 </LinearLayout>
32 32
@@ -39,7 +39,7 @@
39 <TextView 39 <TextView
40 android:id="@+id/text_log_directory" 40 android:id="@+id/text_log_directory"
41 style="@style/AppTheme.BlockContent" 41 style="@style/AppTheme.BlockContent"
42 android:textIsSelectable="true" /> 42 android:textIsSelectable="true"/>
43 43
44 </LinearLayout> 44 </LinearLayout>
45 45
@@ -52,7 +52,7 @@
52 <TextView 52 <TextView
53 android:id="@+id/text_tinc_binary" 53 android:id="@+id/text_tinc_binary"
54 style="@style/AppTheme.BlockContent" 54 style="@style/AppTheme.BlockContent"
55 android:textIsSelectable="true" /> 55 android:textIsSelectable="true"/>
56 56
57 </LinearLayout> 57 </LinearLayout>
58 58
@@ -84,6 +84,16 @@
84 84
85 </LinearLayout> 85 </LinearLayout>
86 86
87 <LinearLayout
88 style="@style/AppTheme.ListBlock.Clickable"
89 android:onClick="openEncryptDecryptPrivateKeyDialog">
90
91 <TextView
92 style="@style/AppTheme.BlockTitle"
93 android:text="@string/action_encrypt_decrypt_private_keys"/>
94
95 </LinearLayout>
96
87 </LinearLayout> 97 </LinearLayout>
88 98
89 </LinearLayout> 99 </LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c909933..dcb415b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -18,6 +18,10 @@
18 <string name="field_net_name">Tinc network name</string> 18 <string name="field_net_name">Tinc network name</string>
19 <string name="field_node_name">Name of this node</string> 19 <string name="field_node_name">Name of this node</string>
20 <string name="field_invitation_url">Invitation URL</string> 20 <string name="field_invitation_url">Invitation URL</string>
21 <string name="field_current_passphrase">Current passphrase\n(leave empty if none)</string>
22 <string name="field_new_passphrase">New passphrase\n(leave empty to decrypt)</string>
23 <string name="field_optional_passphrase">Passphrase (optional)</string>
24 <string name="field_passphrase">Passphrase</string>
21 25
22 <string name="title_connect_to_network">Connect to network</string> 26 <string name="title_connect_to_network">Connect to network</string>
23 <string name="title_request_vpn_permissions">Request VPN permissions</string> 27 <string name="title_request_vpn_permissions">Request VPN permissions</string>
@@ -41,6 +45,8 @@
41 <string name="title_new_network">New network</string> 45 <string name="title_new_network">New network</string>
42 <string name="title_join_network">Join network</string> 46 <string name="title_join_network">Join network</string>
43 <string name="title_unable_to_start_tinc">Unable to start tinc</string> 47 <string name="title_unable_to_start_tinc">Unable to start tinc</string>
48 <string name="title_private_keys_encryption">Private keys encryption</string>
49 <string name="title_unlock_private_keys">Unlock tinc private keys</string>
44 50
45 <string name="action_close">Close</string> 51 <string name="action_close">Close</string>
46 <string name="action_cancel">Cancel</string> 52 <string name="action_cancel">Cancel</string>
@@ -52,17 +58,22 @@
52 <string name="action_open_manual">Open manual</string> 58 <string name="action_open_manual">Open manual</string>
53 <string name="action_scan_qr_code">Scan QR code</string> 59 <string name="action_scan_qr_code">Scan QR code</string>
54 <string name="action_install">Install</string> 60 <string name="action_install">Install</string>
61 <string name="action_unlock">Unlock</string>
62 <string name="action_apply">Apply</string>
63 <string name="action_encrypt_decrypt_private_keys">Encrypt or decrypt private keys</string>
55 64
56 <string name="message_no_network_configuration_found">No network configuration has been found.</string> 65 <string name="message_no_network_configuration_found">No network configuration has been found.</string>
57 <string name="message_no_known_node">No known node</string> 66 <string name="message_no_known_node">No known node</string>
58 <string name="message_generating_configuration">Generating node configuration…</string> 67 <string name="message_generating_configuration">Generating node configuration…</string>
59 <string name="message_joining_network">Joining network…</string> 68 <string name="message_joining_network">Joining network…</string>
60 <string name="message_network_configuration_created">Network configuration successfully created.</string> 69 <string name="message_network_configuration_written">Network configuration successfully written.</string>
61 <string name="message_no_network_name_provided">No network name has been provided.</string> 70 <string name="message_no_network_name_provided">No network name has been provided.</string>
62 <string name="message_no_configuration_for_network_format">No configuration has been found for network \"%1$s\".</string> 71 <string name="message_no_configuration_for_network_format">No configuration has been found for network \"%1$s\".</string>
63 <string name="message_network_config_not_found_format">Network configuration file not found at \"%1$s\".</string> 72 <string name="message_network_config_not_found_format">Network configuration file not found at \"%1$s\".</string>
64 <string name="message_network_config_invalid_format">Invalid network configuration:\n\n%1$s</string> 73 <string name="message_network_config_invalid_format">Invalid network configuration:\n\n%1$s</string>
65 <string name="message_no_qr_code_scanner">No scanner could be started.\n\nInstall Barcode Scanner?</string> 74 <string name="message_no_qr_code_scanner">No scanner could be started.\n\nInstall Barcode Scanner?</string>
75 <string name="message_encrypting_decrypting_private_keys">Encrypting/decrypting private keys</string>
76 <string name="message_could_not_decrypt_private_keys_format">Could not decrypt private keys:\n\n%1$s</string>
66 77
67 <string name="value_none">none</string> 78 <string name="value_none">none</string>
68 <string name="value_yes">yes</string> 79 <string name="value_yes">yes</string>