mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
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) {
|
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 {
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user