Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix hero animation

AmanRajSinghMourya9938db6af4b8
diff --git a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
index 2267833b1a..aa66ae5d46 100644
--- a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
+++ b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
@@ -4,6 +4,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import "package:flutter/services.dart";
import "package:logging/logging.dart";
+import "package:photos/core/configuration.dart";
import "package:photos/core/event_bus.dart";
import "package:photos/events/clear_album_selections_event.dart";
import "package:photos/generated/l10n.dart";
@@ -98,10 +99,16 @@ class _CollectionsFlexiGridViewWidgetState
Future<void> _navigateToCollectionPage(Collection c) async {
final thumbnail = await CollectionsService.instance.getCover(c);
+ final bool isOwner = c.isOwner(Configuration.instance.getUserID()!);
+ final String tagPrefix = (isOwner ? "collection" : "shared_collection") +
+ widget.tag +
+ "_" +
+ c.id.toString();
// ignore: unawaited_futures
routeToPage(
context,
CollectionPage(
+ tagPrefix: tagPrefix,
CollectionWithThumbnail(c, thumbnail),
),
);