mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
[mob][photos] Fix minor issues with selection in in-app link view
This commit is contained in:
parent
8541eaee60
commit
d514a8ea40
@ -44,7 +44,10 @@ class GalleryFileWidget extends StatelessWidget {
|
|||||||
CollectionsService.instance.isSharedPublicLink(file.collectionID!);
|
CollectionsService.instance.isSharedPublicLink(file.collectionID!);
|
||||||
}
|
}
|
||||||
Color selectionColor = Colors.white;
|
Color selectionColor = Colors.white;
|
||||||
if (isFileSelected && file.isUploaded && file.ownerID != currentUserID) {
|
if (isFileSelected &&
|
||||||
|
file.isUploaded &&
|
||||||
|
file.ownerID != currentUserID &&
|
||||||
|
!fileIsFromSharedPublicLink) {
|
||||||
final avatarColors = getEnteColorScheme(context).avatarColors;
|
final avatarColors = getEnteColorScheme(context).avatarColors;
|
||||||
selectionColor =
|
selectionColor =
|
||||||
avatarColors[(file.ownerID!).remainder(avatarColors.length)];
|
avatarColors[(file.ownerID!).remainder(avatarColors.length)];
|
||||||
|
@ -65,7 +65,6 @@ class SharedPublicCollectionPage extends StatelessWidget {
|
|||||||
initialFiles: initialFiles,
|
initialFiles: initialFiles,
|
||||||
albumName: c.collection.displayName,
|
albumName: c.collection.displayName,
|
||||||
sortAsyncFn: () => c.collection.pubMagicMetadata.asc ?? false,
|
sortAsyncFn: () => c.collection.pubMagicMetadata.asc ?? false,
|
||||||
showSelectAllByDefault: galleryType != GalleryType.sharedPublicCollection,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return GalleryFilesState(
|
return GalleryFilesState(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user