π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Hide advance option for link and hide clear collection
AmanRajSinghMourya519da9e0bddc
diff --git a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart b/mobile/apps/locker/lib/ui/components/recents_section_widget.dartindex 61720bb0cc..8f6cc6148a 100644--- a/mobile/apps/locker/lib/ui/components/recents_section_widget.dart+++ b/mobile/apps/locker/lib/ui/components/recents_section_widget.dart@@ -150,7 +150,7 @@ class _RecentsSectionWidgetState extends State<RecentsSectionWidget> {return _FilterChipsRow(chips: chipModels,- showClearButton: _hasActiveFilters,+ showClearButton: false,onClearTapped: _clearAllFilters,);}diff --git a/mobile/apps/locker/lib/ui/sharing/advanced_sharing_bottom_sheet.dart b/mobile/apps/locker/lib/ui/sharing/advanced_sharing_bottom_sheet.dartindex 3f3c9bac0d..6585ac3076 100644--- a/mobile/apps/locker/lib/ui/sharing/advanced_sharing_bottom_sheet.dart+++ b/mobile/apps/locker/lib/ui/sharing/advanced_sharing_bottom_sheet.dart@@ -144,23 +144,21 @@ class _AdvancedSharingBottomSheetStateleadingSpace: leadingSpace,trailingWidget: ToggleSwitchWidget(value: () => isDownloadEnabled,- onChanged: _publicUrl != null- ? () async {- await _updatePublicUrlSettings(- {- 'enableDownload': !isDownloadEnabled,- },- );- if (isDownloadEnabled) {- // ignore: unawaited_futures- showErrorDialog(- context,- "Please note",- "Viewers can still take screenshots or save a copy of your photos using external tools",- );- }- }- : () async {},+ onChanged: () async {+ await _updatePublicUrlSettings(+ {+ 'enableDownload': !isDownloadEnabled,+ },+ );+ if (isDownloadEnabled) {+ // ignore: unawaited_futures+ showErrorDialog(+ context,+ "Please note",+ "Viewers can still take screenshots or save a copy of your photos using external tools",+ );+ }+ },),isGestureDetectorDisabled: true,),@@ -292,6 +290,30 @@ class _AdvancedSharingBottomSheetState);}+ Future<void> _updateUrlSettings(+ BuildContext context,+ Map<String, dynamic> prop, {+ bool showProgressDialog = true,+ }) async {+ final dialog = showProgressDialog+ ? createProgressDialog(context, context.l10n.pleaseWait)+ : null;+ await dialog?.show();+ try {+ await CollectionApiClient.instance+ .updateShareUrl(widget.collection!, prop);+ await dialog?.hide();+ showShortToast(context, "Collection updated");+ if (mounted) {+ setState(() {});+ }+ } catch (e) {+ await dialog?.hide();+ await showGenericErrorDialog(context: context, error: e);+ rethrow;+ }+ }+Future<void> _createPublicLink() async {final success = await CollectionActions.enableUrl(context,diff --git a/mobile/apps/locker/lib/ui/sharing/share_collection_bottom_sheet.dart b/mobile/apps/locker/lib/ui/sharing/share_collection_bottom_sheet.dartindex 3df3c22e0d..ade125bc9d 100644--- a/mobile/apps/locker/lib/ui/sharing/share_collection_bottom_sheet.dart+++ b/mobile/apps/locker/lib/ui/sharing/share_collection_bottom_sheet.dart@@ -111,9 +111,11 @@ class _ShareCollectionBottomSheetState_buildPublicLinkSection(colorScheme, textTheme),const SizedBox(height: 12),_buildShareLinkButton(),- const SizedBox(height: 24),- _buildAdvancedOptionsRow(colorScheme, textTheme),- const SizedBox(height: 24),++ // Hide Advance Options+ // const SizedBox(height: 24),+ // _buildAdvancedOptionsRow(colorScheme, textTheme),+ // const SizedBox(height: 24),] else ...[_buildCompactActionsCard(colorScheme, textTheme),],