Browse Source

Remove unnecessary check

_loadedFinalImage will be true only after _loadedSmallThumbnail becomes true as first the small thumbnail is loaded and then the final image
ashilkn 1 năm trước cách đây
mục cha
commit
a9631c09c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      mobile/lib/ui/viewer/file/zoomable_image.dart

+ 1 - 1
mobile/lib/ui/viewer/file/zoomable_image.dart

@@ -129,7 +129,7 @@ class _ZoomableImageState extends State<ZoomableImage>
   }
 
   void _loadNetworkImage() {
-    if (!_loadedSmallThumbnail && !_loadedFinalImage) {
+    if (!_loadedSmallThumbnail) {
       final cachedThumbnail = ThumbnailInMemoryLruCache.get(_photo);
       if (cachedThumbnail != null) {
         _imageProvider = Image.memory(cachedThumbnail).image;