Try to copy image from cache to download dir when getting image from download dir
This commit is contained in:
1 parent
921856f53f
commit
63a2f9e796
1 file changed
+9
-5
@@ -295,12 +295,16 @@ public final class SpiderDen {
|
||||
return null;
|
||||
}
|
||||
|
||||
UniFile file = findImageFile(dir, index);
|
||||
if (file != null) {
|
||||
return new UniFileInputStreamPipe(file);
|
||||
} else {
|
||||
return null;
|
||||
for (int i = 0; i < 2; i++) {
|
||||
UniFile file = findImageFile(dir, index);
|
||||
if (file != null) {
|
||||
return new UniFileInputStreamPipe(file);
|
||||
} else if (!copyFromCacheToDownloadDir(index)) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in new issue
Block a user