Added warning about credentials in debug info (#1457)

* Added warning about credentials in debug info

Signed-off-by: Arnau Mora <arnyminerz@proton.me>

* Updated warning message

Signed-off-by: Arnau Mora <arnyminerz@proton.me>

* Changed descriptive icon

Signed-off-by: Arnau Mora <arnyminerz@proton.me>

* Replace "alert" by "notice"

---------

Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Co-authored-by: Ricki Hirner <hirner@bitfire.at>
This commit is contained in:
Arnau Mora
2025-05-13 15:45:52 +02:00
committed by GitHub
parent cfeb6b3974
commit fc10a315d5
2 changed files with 15 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.rounded.Adb
import androidx.compose.material.icons.rounded.BugReport
import androidx.compose.material.icons.rounded.Info
import androidx.compose.material.icons.rounded.PrivacyTip
import androidx.compose.material.icons.rounded.Share
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.FloatingActionButton
@@ -195,6 +196,13 @@ fun DebugInfoScreen(
if (!showDebugInfo || zipProgress)
ProgressBar()
CardWithImage(
title = stringResource(R.string.debug_info_privacy_warning_title),
message = stringResource(R.string.debug_info_privacy_warning_description),
icon = Icons.Rounded.PrivacyTip,
modifier = Modifier.padding(horizontal = 8.dp, vertical = 8.dp)
)
if (showModelCause) {
CardWithImage(
title = modelCauseTitle,

View File

@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?><resources xmlns:tools="http://schemas.android.com/tools">
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
-->
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- common strings -->
<string name="app_name" translatable="false">DAVx⁵</string>
@@ -463,6 +467,8 @@
<string name="debug_info_logs_caption">Logs</string>
<string name="debug_info_logs_subtitle">Verbose logs are available</string>
<string name="debug_info_logs_view">View logs</string>
<string name="debug_info_privacy_warning_title">Privacy notice</string>
<string name="debug_info_privacy_warning_description">Logs and debug info may contain private information. Please be aware of this when sharing publicly.</string>
<!-- ExceptionInfoFragment -->
<string name="exception">An error has occurred.</string>