show own avatar in muc details
This commit is contained in:
parent
8a82586d5b
commit
5ed9c2a805
|
@ -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 {
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue