Skip to content

armgit / ente

Public Imported from GitHub
0

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

Pause/play memories when navigating to/from jump to date gallery

ashilkndebbd4fa1f24
diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
index 64869ea681..ec53b54509 100644
--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
@@ -369,13 +369,20 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
children: [
child!,
GestureDetector(
- onTap: () => routeToPage(
- context,
- JumpToDateGallery(
- fileToJumpTo:
- inheritedData.memories[value].file,
- ),
- ),
+ onTap: () async {
+ final fullScreenState =
+ context.findAncestorStateOfType<
+ _FullScreenMemoryState>();
+ fullScreenState?._toggleAnimation(pause: true);
+ await routeToPage(
+ context,
+ JumpToDateGallery(
+ fileToJumpTo:
+ inheritedData.memories[value].file,
+ ),
+ );
+ fullScreenState?._toggleAnimation(pause: false);
+ },
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),