Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Guard panorama state updates after async XMP parse

Neeraj Guptac75940923024
diff --git a/mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart b/mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart
index 8df5aef99c..e97e71cfda 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/panorama_viewer_screen.dart
@@ -54,6 +54,9 @@ class _PanoramaViewerScreenState extends State<PanoramaViewerScreen> {
Future<void> init() async {
final data = await extractXmp(filePath: widget.file.path);
+ if (!mounted) {
+ return;
+ }
double? cWidth =
double.tryParse(data["GPano:CroppedAreaImageWidthPixels"] ?? "");
double? cHeight =