From c6ff4ddc7eee9a2db14b2dcdfc76ec61c11bdb25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 30 Sep 2011 09:54:49 +0200 Subject: [PATCH] Set album image after parsing all images. --- src/main/java/net/pterodactylus/sone/core/SoneDownloader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 4d63130..1caf186 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -456,7 +456,7 @@ public class SoneDownloader extends AbstractService { return null; } } - Album album = core.getAlbum(id).setSone(sone).setTitle(title).setDescription(description).setAlbumImage(albumImageId); + Album album = core.getAlbum(id).setSone(sone).setTitle(title).setDescription(description); if (parent != null) { parent.addAlbum(album); } else { @@ -489,6 +489,7 @@ public class SoneDownloader extends AbstractService { album.addImage(image); } } + album.setAlbumImage(albumImageId); } } -- 2.7.4