From: David ‘Bombe’ Roden Date: Fri, 30 Sep 2011 07:54:49 +0000 (+0200) Subject: Set album image after parsing all images. X-Git-Tag: 0.7.2^2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c6ff4ddc7eee9a2db14b2dcdfc76ec61c11bdb25;p=Sone.git Set album image after parsing all images. --- 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); } }