aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-06-01 23:23:43 +0200
committerChristian Schneppe <christian@pix-art.de>2018-06-01 23:23:43 +0200
commitf1c661246243b7a1627088794067f30b8bdaafae (patch)
treeb3aaf677b6dedf8b5f16fdbd179a5170ffde207c /src/main
parent0a9e68e77ea53fa051e4050e1a63ea15930f4943 (diff)
show MUC avatar in ConferenceDetailsActivity
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java1
-rw-r--r--src/main/res/layout/activity_muc_details.xml12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
index fab8c5ea7..e31eba559 100644
--- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
@@ -552,6 +552,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
updateView();
}
}
+ this.binding.detailsMucAvatar.setImageBitmap(avatarService().get(mConversation, getPixel(Config.AVATAR_SIZE)));
}
private void updateView() {
diff --git a/src/main/res/layout/activity_muc_details.xml b/src/main/res/layout/activity_muc_details.xml
index 523e2b53c..35fe03f16 100644
--- a/src/main/res/layout/activity_muc_details.xml
+++ b/src/main/res/layout/activity_muc_details.xml
@@ -34,6 +34,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="@dimen/card_padding_regular">
@@ -49,6 +50,17 @@
android:textIsSelectable="false"
android:textStyle="bold" />
+ <ImageView
+ android:id="@+id/details_muc_avatar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:adjustViewBounds="true"
+ android:background="@drawable/message_border"
+ android:maxHeight="384dp"
+ android:maxWidth="384dp"
+ android:padding="1dp"
+ android:scaleType="centerCrop" />
+
<RelativeLayout
android:id="@+id/muc_settings"
android:layout_width="fill_parent"