aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/start_error_notification.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/start_error_notification.xml')
-rw-r--r--app/src/main/res/layout/start_error_notification.xml36
1 files changed, 33 insertions, 3 deletions
diff --git a/app/src/main/res/layout/start_error_notification.xml b/app/src/main/res/layout/start_error_notification.xml
index 3d2169d..4499357 100644
--- a/app/src/main/res/layout/start_error_notification.xml
+++ b/app/src/main/res/layout/start_error_notification.xml
@@ -1,8 +1,8 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2 2
3<!-- 3<!--
4 * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon 4 * Tinc Mesh VPN: Android client and user interface
5 * Copyright (C) 2017-2023 Pacien TRAN-GIRARD 5 * Copyright (C) 2017-2023 Euxane P. 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
@@ -33,6 +33,14 @@
33 name="openManualAction" 33 name="openManualAction"
34 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/> 34 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
35 35
36 <variable
37 name="openConfigDirAction"
38 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
39
40 <variable
41 name="openLogDirAction"
42 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
43
36 </data> 44 </data>
37 45
38 <LinearLayout 46 <LinearLayout
@@ -62,8 +70,30 @@
62 70
63 </LinearLayout> 71 </LinearLayout>
64 72
73 <LinearLayout
74 style="@style/AppTheme.ListBlock.Clickable"
75 android:visibility="@{errorNotification.configDir == null ? View.GONE : View.VISIBLE}"
76 android:onClick="@{() -> openConfigDirAction.invoke()}">
77
78 <TextView
79 style="@style/AppTheme.BlockTitle"
80 android:text="@string/notification_error_action_open_config_dir" />
81
82 </LinearLayout>
83
84 <LinearLayout
85 style="@style/AppTheme.ListBlock.Clickable"
86 android:visibility="@{errorNotification.proposeLogs ? View.VISIBLE : View.GONE}"
87 android:onClick="@{() -> openLogDirAction.invoke()}">
88
89 <TextView
90 style="@style/AppTheme.BlockTitle"
91 android:text="@string/notification_error_action_open_logs_dir" />
92
93 </LinearLayout>
94
65 </LinearLayout> 95 </LinearLayout>
66 96
67 </LinearLayout> 97 </LinearLayout>
68 98
69</layout> \ No newline at end of file 99</layout>