Skip to content

armgit / ente

Public Imported from GitHub
0

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

Refactor: removing null check for _imageProvider when calling onFinalFileLoad

AmanRajSinghMourya277b88f33261
diff --git a/mobile/lib/ui/viewer/file/zoomable_image.dart b/mobile/lib/ui/viewer/file/zoomable_image.dart
index 4be0f700c1..aa69d1cd1d 100644
--- a/mobile/lib/ui/viewer/file/zoomable_image.dart
+++ b/mobile/lib/ui/viewer/file/zoomable_image.dart
@@ -428,9 +428,7 @@ class _ZoomableImageState extends State<ZoomableImage> {
_loadedFinalImage = true;
_logger.info("Final image loaded");
});
- if (_imageProvider != null) {
- widget.onFinalFileLoad?.call(memoryDuration: 5);
- }
+ widget.onFinalFileLoad?.call(memoryDuration: 5);
}
Future<void> _updatePhotoViewController({