From: David ‘Bombe’ Roden Date: Sun, 7 Nov 2010 10:04:40 +0000 (+0100) Subject: Download a Sone again when its identity was updated. X-Git-Tag: 0.2-RC2~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=863940aed55e088223af10e2707cc2f427ccc6bc;p=Sone.git Download a Sone again when its identity was updated. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 20c5884..73f7410 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1007,8 +1007,16 @@ public class Core implements IdentityListener { * {@inheritDoc} */ @Override - public void identityUpdated(Identity identity) { - /* TODO */ + public void identityUpdated(final Identity identity) { + new Thread(new Runnable() { + + @Override + @SuppressWarnings("synthetic-access") + public void run() { + Sone sone = getRemoteSone(identity.getId()); + soneDownloader.fetchSone(sone); + } + }).start(); } /**