ImageFetcher: Better handling if Image can't be saved as jpg

This commit is contained in:
Hans Mackowiak
2019-08-24 17:51:39 +00:00
committed by Michael Kamensky
parent c31198eaea
commit 5cf1f47047
3 changed files with 38 additions and 10 deletions

View File

@@ -163,6 +163,10 @@ public final class ImageKeys {
for (String ext : FILE_EXTENSIONS) {
File file = new File(dir, filename + ext);
if (file.exists()) {
if (file.isDirectory()) {
file.delete();
continue;
}
return file;
}
}