show own avatar in muc details

This commit is contained in:
iNPUTmice 2014-08-11 23:22:46 +02:00
parent 8a82586d5b
commit 5ed9c2a805
2 changed files with 2 additions and 3 deletions

View file

@ -326,7 +326,7 @@ public class Account extends AbstractEntity{
public Bitmap getImage(Context context, int size) {
if (this.avatar!=null) {
Bitmap bm = BitmapFactory.decodeFile(FileBackend.getAvatarPath(context, avatar));
Bitmap bm = FileBackend.getAvatar(this.avatar, size, context);
if (bm==null) {
return UIHelper.getContactPicture(getJid(), size, context, false);
} else {

View file

@ -199,8 +199,7 @@ public class ConferenceDetailsActivity extends XmppActivity {
}
private void populateView() {
mYourPhoto.setImageBitmap(UIHelper.getContactPicture(conversation
.getMucOptions().getActualNick(), 48, this, false));
mYourPhoto.setImageBitmap(conversation.getAccount().getImage(this, 48));
setTitle(conversation.getName(true));
mFullJid.setText(conversation.getContactJid().split("/")[0]);
mYourNick.setText(conversation.getMucOptions().getActualNick());