Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix 1st memory of 1st memory block and last memory of last memory block by `reseting animation` and `poping to home screen` respectively

AmanRajSinghMourya8cc0fa73051b
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 0fa74931a8..305b065f56 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
@@ -260,6 +260,8 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
_onPageChange(inheritedData, currentIndex + 1);
} else if (widget.onNextMemory != null) {
widget.onNextMemory!();
+ } else {
+ Navigator.of(context).pop();
}
}
@@ -271,6 +273,10 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
_onPageChange(inheritedData, currentIndex - 1);
} else if (widget.onPreviousMemory != null) {
widget.onPreviousMemory!();
+ } else {
+ hasFinalFileLoaded = true;
+ _onPageChange(inheritedData, currentIndex);
+ _toggleAnimation(pause: false);
}
}