Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Hide share icon when collection is from Collect Photos

Aman Raj Singh Mouryabbaabeef3810
diff --git a/mobile/lib/ui/viewer/gallery/collection_page.dart b/mobile/lib/ui/viewer/gallery/collection_page.dart
index f3f044f898..34fe367bac 100644
--- a/mobile/lib/ui/viewer/gallery/collection_page.dart
+++ b/mobile/lib/ui/viewer/gallery/collection_page.dart
@@ -106,6 +106,7 @@ class CollectionPage extends StatelessWidget {
c.collection.displayName,
_selectedFiles,
collection: c.collection,
+ isFromCollectPhotos: isFromCollectPhotos,
),
),
floatingActionButton: isFromCollectPhotos
diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 4535ce7c86..b0a35613ea 100644
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -52,6 +52,7 @@ class GalleryAppBarWidget extends StatefulWidget {
final SelectedFiles selectedFiles;
final DeviceCollection? deviceCollection;
final Collection? collection;
+ final bool isFromCollectPhotos;
const GalleryAppBarWidget(
this.type,
@@ -60,6 +61,7 @@ class GalleryAppBarWidget extends StatefulWidget {
Key? key,
this.deviceCollection,
this.collection,
+ this.isFromCollectPhotos = false,
}) : super(key: key);
@override
@@ -306,7 +308,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
),
);
}
- if (galleryType.isSharable()) {
+ if (galleryType.isSharable() && !widget.isFromCollectPhotos) {
actions.add(
Tooltip(
message: "Share",