浏览代码

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 年之前
父节点
当前提交
a9631c09c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;