diff options
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/start_error_notification.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/src/main/res/layout/start_error_notification.xml b/app/src/main/res/layout/start_error_notification.xml index 543cd8c..4499357 100644 --- a/app/src/main/res/layout/start_error_notification.xml +++ b/app/src/main/res/layout/start_error_notification.xml | |||
@@ -33,6 +33,14 @@ | |||
33 | name="openManualAction" | 33 | name="openManualAction" |
34 | type="kotlin.jvm.functions.Function0<kotlin.Unit>"/> | 34 | type="kotlin.jvm.functions.Function0<kotlin.Unit>"/> |
35 | 35 | ||
36 | <variable | ||
37 | name="openConfigDirAction" | ||
38 | type="kotlin.jvm.functions.Function0<kotlin.Unit>"/> | ||
39 | |||
40 | <variable | ||
41 | name="openLogDirAction" | ||
42 | type="kotlin.jvm.functions.Function0<kotlin.Unit>"/> | ||
43 | |||
36 | </data> | 44 | </data> |
37 | 45 | ||
38 | <LinearLayout | 46 | <LinearLayout |
@@ -62,6 +70,28 @@ | |||
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> |