Skip to content

armgit / ente

Public Imported from GitHub
0

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

Guard native video error dialog context

Neeraj Gupta673fe5eda82b
diff --git a/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart b/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
index 425f23ccb6..aab1cf471b 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/video_widget_native.dart
@@ -637,6 +637,7 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
}
})
.onError((error, stackTrace) {
+ if (!mounted) return;
showErrorDialog(
context,
AppLocalizations.of(context).error,