π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Share-sheet fallback when iOS Mail.app is unconfigured (#10108)
Aman Rajf10dec0a7cca
diff --git a/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart b/mobile/apps/photos/lib/ui/settings/support/help_support_page.dartindex 8cc70349b7..87220f19d4 100644--- a/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart+++ b/mobile/apps/photos/lib/ui/settings/support/help_support_page.dart@@ -1,14 +1,18 @@+import "package:flutter/foundation.dart";import "package:flutter/material.dart";import "package:hugeicons/hugeicons.dart";import "package:logging/logging.dart";import "package:photos/core/constants.dart";+import "package:photos/core/error-reporting/super_logging.dart";import "package:photos/generated/l10n.dart";+import "package:photos/service_locator.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/common/web_page.dart";import "package:photos/ui/components/menu_item_widget/menu_item_widget_new.dart";import "package:photos/ui/components/menu_section_title.dart";import "package:photos/ui/notification/toast.dart";import "package:photos/ui/settings/support/report_issue_page.dart";+import "package:photos/ui/tools/debug/log_file_viewer.dart";import "package:photos/utils/email_util.dart";import "package:url_launcher/url_launcher_string.dart";@@ -113,6 +117,21 @@ class HelpSupportPage extends StatelessWidget {);},),+ if (flagService.internalUser || kDebugMode) ...[+ const SizedBox(height: 8),+ MenuItemWidgetNew(+ title: l10n.viewLogs,+ leadingIconWidget: _buildIconWidget(+ context,+ HugeIcons.strokeRoundedFile01,+ ),+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ await _viewLogs(context);+ },+ ),+ ],_SupportLink(label: l10n.exportLogs,onTap: () async {@@ -226,6 +245,22 @@ class HelpSupportPage extends StatelessWidget {);}+ Future<void> _viewLogs(BuildContext context) async {+ final logFile = SuperLogging.logFile;+ if (logFile == null) {+ showShortToast(+ context,+ AppLocalizations.of(context).somethingWentWrong,+ );+ return;+ }+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (context) => LogFileViewer(logFile),+ ),+ );+ }+Future<void> _exportLogs(BuildContext context) async {try {final zipFilePath = await getZippedLogsFile(context);diff --git a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dartindex 498f87a20c..a6509a4bc8 100644--- a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart+++ b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart@@ -1,5 +1,6 @@import "package:flutter/material.dart";import "package:flutter/services.dart";+import "package:photos/core/constants.dart";import "package:photos/generated/l10n.dart";import "package:photos/theme/ente_theme.dart";import "package:photos/ui/components/base_bottom_sheet.dart";@@ -32,6 +33,8 @@ Future<void> showNoMailAppSheet(}class NoMailAppSheet extends StatelessWidget {+ static const _toFieldLabel = "To";+final String toEmail;final String subject;final String message;@@ -145,6 +148,7 @@ class NoMailAppSheet extends StatelessWidget {logsLabel != null &&logsLabel!.trim().isNotEmpty;final items = <String>[+ "$_toFieldLabel: $supportEmail","${l10n.subject}: $subject","${l10n.message}: $message",if (deviceInfo != null && deviceInfo!.trim().isNotEmpty)