Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix minor issues with selection in in-app link view

ashilknd514a8ea40f4
diff --git a/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart b/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart
index fda19a9c1c..35d9cd3fa2 100644
--- a/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/component/gallery_file_widget.dart
@@ -44,7 +44,10 @@ class GalleryFileWidget extends StatelessWidget {
CollectionsService.instance.isSharedPublicLink(file.collectionID!);
}
Color selectionColor = Colors.white;
- if (isFileSelected && file.isUploaded && file.ownerID != currentUserID) {
+ if (isFileSelected &&
+ file.isUploaded &&
+ file.ownerID != currentUserID &&
+ !fileIsFromSharedPublicLink) {
final avatarColors = getEnteColorScheme(context).avatarColors;
selectionColor =
avatarColors[(file.ownerID!).remainder(avatarColors.length)];
diff --git a/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart b/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
index c81967205e..0c9e2c4d0f 100644
--- a/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
+++ b/mobile/lib/ui/viewer/gallery/shared_public_collection_page.dart
@@ -65,7 +65,6 @@ class SharedPublicCollectionPage extends StatelessWidget {
initialFiles: initialFiles,
albumName: c.collection.displayName,
sortAsyncFn: () => c.collection.pubMagicMetadata.asc ?? false,
- showSelectAllByDefault: galleryType != GalleryType.sharedPublicCollection,
);
return GalleryFilesState(