π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add mounted check
ashilkn489c8069236f
diff --git a/mobile/lib/ui/home/memories/memory_cover_widget.dart b/mobile/lib/ui/home/memories/memory_cover_widget.dartindex ddf3359903..10bbe78d3d 100644--- a/mobile/lib/ui/home/memories/memory_cover_widget.dart+++ b/mobile/lib/ui/home/memories/memory_cover_widget.dart@@ -224,11 +224,13 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {void _preloadFirstUnseenMemory() {Future.delayed(const Duration(seconds: 5), () {- if (widget.memories.isEmpty) return;+ if (mounted) {+ if (widget.memories.isEmpty) return;- final index = _getNextMemoryIndex();- preloadThumbnail(widget.memories[index].file);- preloadFile(widget.memories[index].file);+ final index = _getNextMemoryIndex();+ preloadThumbnail(widget.memories[index].file);+ preloadFile(widget.memories[index].file);+ }});}