Additional image files check after download

This commit is contained in:
Oleg Agafonov 2020-09-08 18:23:11 +04:00
parent f670de09d9
commit 9f0772fb65

View file

@ -117,6 +117,11 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
instance.uiDialog.showDialog(); instance.uiDialog.showDialog();
instance.uiDialog.dispose(); instance.uiDialog.dispose();
instance.setNeedCancel(true); instance.setNeedCancel(true);
// IMAGES CHECK (download process can broke some files, so fix it here too)
// code executes on cancel/close download dialog (but not executes on app's close -- it's ok)
logger.info("Images: search broken files...");
CardImageUtils.checkAndFixImageFiles();
} }
public boolean isNeedCancel() { public boolean isNeedCancel() {