π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(ui): disable execution states for share buttons in recovery key and QR code pages
AmanRajSinghMourya35e3d4836f0b
diff --git a/mobile/apps/photos/lib/ui/account/recovery_key_page.dart b/mobile/apps/photos/lib/ui/account/recovery_key_page.dartindex 8635a8b67b..39bb91b85f 100644--- a/mobile/apps/photos/lib/ui/account/recovery_key_page.dart+++ b/mobile/apps/photos/lib/ui/account/recovery_key_page.dart@@ -1,3 +1,4 @@+import 'dart:async';import 'dart:io';import 'package:bip39/bip39.dart' as bip39;@@ -167,9 +168,10 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {ButtonWidgetV2(buttonType: ButtonTypeV2.secondary,shouldStickToLightTheme: true,+ shouldSurfaceExecutionStates: false,labelText: AppLocalizations.of(context).shareKey,onTap: () async {- await _shareRecoveryKey(recoveryKey);+ unawaited(_shareRecoveryKey(recoveryKey));},),],diff --git a/mobile/apps/photos/lib/ui/family/invite_members_page.dart b/mobile/apps/photos/lib/ui/family/invite_members_page.dartindex bccacc6cd4..5533cd603b 100644--- a/mobile/apps/photos/lib/ui/family/invite_members_page.dart+++ b/mobile/apps/photos/lib/ui/family/invite_members_page.dart@@ -406,6 +406,7 @@ class _InviteMembersPageState extends State<InviteMembersPage> {buttonType: ButtonTypeV2.neutral,labelText: l10n.sendInvite,leadingWidget: const Icon(Icons.ios_share_outlined),+ shouldSurfaceExecutionStates: false,onTap: () async {await shareText(l10n.shareTextRecommendUsingEnteForFamily);if (mounted) {diff --git a/mobile/apps/photos/lib/ui/viewer/file/qr_code_content_sheet.dart b/mobile/apps/photos/lib/ui/viewer/file/qr_code_content_sheet.dartindex 1b6fae93a5..b0a870fefc 100644--- a/mobile/apps/photos/lib/ui/viewer/file/qr_code_content_sheet.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/qr_code_content_sheet.dart@@ -105,6 +105,7 @@ class _QrContentEntry extends StatelessWidget {ButtonWidgetV2(buttonType: ButtonTypeV2.secondary,labelText: l10n.shareLink,+ shouldSurfaceExecutionStates: false,onTap: () async {await shareText(content, context: context);},@@ -134,6 +135,7 @@ class _QrContentEntry extends StatelessWidget {ButtonWidgetV2(buttonType: ButtonTypeV2.primary,labelText: l10n.shareLink,+ shouldSurfaceExecutionStates: false,onTap: () async {await shareText(content, context: context);},