Skip to content

armgit / ente

Public Imported from GitHub
0

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

Guard panorama open after dispose

Neeraj Guptabb1ba799cfb8
diff --git a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
index acc58f92c4..6b1d9c29af 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
@@ -365,6 +365,7 @@ class _BodyState extends State<_Body> {
return;
}
final fetchedThumbnail = await getThumbnail(file);
+ if (!mounted) return;
Navigator.of(context)
.push(
MaterialPageRoute(