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) { public Bitmap getImage(Context context, int size) {
if (this.avatar!=null) { if (this.avatar!=null) {
Bitmap bm = BitmapFactory.decodeFile(FileBackend.getAvatarPath(context, avatar)); Bitmap bm = FileBackend.getAvatar(this.avatar, size, context);
if (bm==null) { if (bm==null) {
return UIHelper.getContactPicture(getJid(), size, context, false); return UIHelper.getContactPicture(getJid(), size, context, false);
} else { } else {

View file

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