From a56ee63a3ebe6c224b967d4b40ab2ccf4386dbed Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 21 Oct 2014 15:26:17 +0200 Subject: [PATCH] update ui when new avatar was found --- src/eu/siacs/conversations/parser/MessageParser.java | 4 ++++ .../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 e4be25bff..b5e14305a 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 5da87b101..37e334eb6 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);