Download a Sone again when its identity was updated.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 7 Nov 2010 10:04:40 +0000 (11:04 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 7 Nov 2010 10:04:40 +0000 (11:04 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 20c5884..73f7410 100644 (file)
@@ -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();
        }
 
        /**