From a56ee63a3ebe6c224b967d4b40ab2ccf4386dbed Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 21 Oct 2014 15:26:17 +0200 Subject: update ui when new avatar was found --- src/eu/siacs/conversations/parser/MessageParser.java | 4 ++++ src/eu/siacs/conversations/services/XmppConnectionService.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/eu/siacs/conversations/parser/MessageParser.java b/src/eu/siacs/conversations/parser/MessageParser.java index e4be25bf..b5e14305 100644 --- a/src/eu/siacs/conversations/parser/MessageParser.java +++ b/src/eu/siacs/conversations/parser/MessageParser.java @@ -350,12 +350,16 @@ public class MessageParser extends AbstractParser implements } mXmppConnectionService.getAvatarService().clear( account); + mXmppConnectionService.updateConversationUi(); + mXmppConnectionService.updateAccountUi(); } else { Contact contact = account.getRoster().getContact( from); contact.setAvatar(avatar.getFilename()); mXmppConnectionService.getAvatarService().clear( contact); + mXmppConnectionService.updateConversationUi(); + mXmppConnectionService.updateRosterUi(); } } else { mXmppConnectionService.fetchAvatar(account, avatar); diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 5da87b10..37e334eb 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -1510,11 +1510,15 @@ public class XmppConnectionService extends Service { databaseBackend.updateAccount(account); } getAvatarService().clear(account); + updateConversationUi(); + updateAccountUi(); } else { Contact contact = account.getRoster() .getContact(avatar.owner); contact.setAvatar(avatar.getFilename()); getAvatarService().clear(contact); + updateConversationUi(); + updateRosterUi(); } if (callback != null) { callback.success(avatar); -- cgit v1.2.3