Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove file names warning from Locker log dialog

ashilkneb6c5ed2d736
diff --git a/mobile/apps/locker/lib/l10n/app_en.arb b/mobile/apps/locker/lib/l10n/app_en.arb
index b9f15580c1..f7c264827f 100644
--- a/mobile/apps/locker/lib/l10n/app_en.arb
+++ b/mobile/apps/locker/lib/l10n/app_en.arb
@@ -359,6 +359,10 @@
"suggestFeatures": "Suggest features",
"reportABug": "Report a bug",
"reportBug": "Report bug",
+ "logsDialogBodyLocker": "This will send logs to help us debug your issue.",
+ "@logsDialogBodyLocker": {
+ "description": "Dialog body text for sending logs in Locker app (without file name warning)"
+ },
"social": "Social",
"rateUsOnStore": "Rate us on {storeName}",
"blog": "Blog",
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index 82ac2504c3..6e3f21643f 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -1018,6 +1018,12 @@ abstract class AppLocalizations {
/// **'Report bug'**
String get reportBug;
+ /// Dialog body text for sending logs in Locker app (without file name warning)
+ ///
+ /// In en, this message translates to:
+ /// **'This will send logs to help us debug your issue.'**
+ String get logsDialogBodyLocker;
+
/// No description provided for @social.
///
/// In en, this message translates to:
@@ -2496,9 +2502,8 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
}
throw FlutterError(
- 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
- 'an issue with the localizations generation tool. Please file an issue '
- 'on GitHub with a reproducible sample app and the gen-l10n configuration '
- 'that was used.',
- );
+ 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
+ 'an issue with the localizations generation tool. Please file an issue '
+ 'on GitHub with a reproducible sample app and the gen-l10n configuration '
+ 'that was used.');
}
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index 2b738e1dc6..ec95a92e74 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -537,6 +537,10 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get reportBug => 'Report bug';
+ @override
+ String get logsDialogBodyLocker =>
+ 'This will send logs to help us debug your issue.';
+
@override
String get social => 'Social';
@@ -1155,10 +1159,7 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String uploadedFilesProgressWithError(
- int completed,
- int total,
- String error,
- ) {
+ int completed, int total, String error) {
return 'Uploaded $completed/$total items... ($error)';
}
diff --git a/mobile/apps/locker/lib/ui/settings/support_section_widget.dart b/mobile/apps/locker/lib/ui/settings/support_section_widget.dart
index 04690e676d..7440df5eae 100644
--- a/mobile/apps/locker/lib/ui/settings/support_section_widget.dart
+++ b/mobile/apps/locker/lib/ui/settings/support_section_widget.dart
@@ -69,7 +69,11 @@ class SupportSectionWidget extends StatelessWidget {
),
trailingIcon: Icons.chevron_right_outlined,
onTap: () async {
- await sendLogs(context, "[email protected]");
+ await sendLogs(
+ context,
+ dialogBody: context.l10n.logsDialogBodyLocker,
+ );
},
onLongPress: () async {
final zipFilePath = await getZippedLogsFile();
diff --git a/mobile/packages/utils/lib/email_util.dart b/mobile/packages/utils/lib/email_util.dart
index ea1c5220ae..da27e8c7d9 100644
--- a/mobile/packages/utils/lib/email_util.dart
+++ b/mobile/packages/utils/lib/email_util.dart
@@ -37,13 +37,14 @@ Future<void> sendLogs(
Function? postShare,
String? subject,
String? body,
+ String? dialogBody,
}) async {
// ignore: unawaited_futures
showDialogWidget(
context: context,
title: context.strings.reportABug,
icon: Icons.bug_report_outlined,
- body: context.strings.logsDialogBody,
+ body: dialogBody ?? context.strings.logsDialogBody,
buttons: [
ButtonWidget(
isInAlert: true,