From: David ‘Bombe’ Roden Date: Wed, 21 Sep 2011 05:47:06 +0000 (+0200) Subject: Store album image ID instead of index. X-Git-Tag: 0.7^2~2^2~61 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=inline;h=17da32be452acc7e110801fb04bf155bf0587224;p=Sone.git Store album image ID instead of index. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index 7d22858..d0d078b 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -53,8 +53,8 @@ public class Album implements Fingerprintable { /** The description of this album. */ private String description; - /** The index of the album picture. */ - private int albumImage = -1; + /** The ID of the album picture. */ + private String albumImage; /** * Creates a new album with a random ID. @@ -189,7 +189,7 @@ public class Album implements Fingerprintable { * @return The image to show when this album is listed */ public Image getAlbumImage() { - if (albumImage == -1) { + if (albumImage == null) { return null; } return images.get(albumImage);