π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Keep send link as first option
Neeraj Gupta8613f5e73faf
diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dartindex 7fc020cf5d..c74bb364bd 100644--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart@@ -137,24 +137,7 @@ class _FileSelectionActionsWidgetState//and set [shouldShow] to false for items that should not be shown and true//for items that should be shown.final List<SelectionActionButton> items = [];- if (widget.type == GalleryType.peopleTag && widget.person != null) {- items.add(- SelectionActionButton(- icon: Icons.remove_circle_outline,- labelText: 'Not ${widget.person!.data.name}?',- onTap: anyUploadedFiles ? _onNotpersonClicked : null,- ),- );- if (ownedFilesCount == 1) {- items.add(- SelectionActionButton(- icon: Icons.image_outlined,- labelText: 'Use as cover',- onTap: anyUploadedFiles ? _setPersonCover : null,- ),- );- }- }+if (widget.type.showCreateLink()) {if (_cachedCollectionForSharedLink != null && anyUploadedFiles) {items.add(@@ -176,6 +159,24 @@ class _FileSelectionActionsWidgetState);}}+ if (widget.type == GalleryType.peopleTag && widget.person != null) {+ items.add(+ SelectionActionButton(+ icon: Icons.remove_circle_outline,+ labelText: 'Not ${widget.person!.data.name}?',+ onTap: anyUploadedFiles ? _onNotpersonClicked : null,+ ),+ );+ if (ownedFilesCount == 1) {+ items.add(+ SelectionActionButton(+ icon: Icons.image_outlined,+ labelText: 'Use as cover',+ onTap: anyUploadedFiles ? _setPersonCover : null,+ ),+ );+ }+ }final showUploadIcon = widget.type == GalleryType.localFolder &&split.ownedByCurrentUser.isEmpty;