- Fixing issue with ImageFetcher with "fake" cards (used in Ante and other places)

This commit is contained in:
Sol
2015-12-30 02:34:26 +00:00
parent 56b8f40bf4
commit 2f963ebc9e

View File

@@ -28,6 +28,10 @@ public class ImageFetcher {
public static void fetchImage(final CardView card, final String imageKey, final Callback callback) {
FThreads.assertExecutedByEdt(true);
// Fake card (like the ante prompt) trying to be "fetched"
if (imageKey.length() < 2)
return;
final String prefix = imageKey.substring(0, 2);
final File destFile;
final String urlToDownload;