diff options
author | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-14 19:52:48 +0100 |
---|---|---|
committer | Christian Schneppe <christian.schneppe@pix-art.de> | 2020-02-14 19:52:48 +0100 |
commit | 3f12418b601bf626b478d78c488db0ce1041ef08 (patch) | |
tree | 26d20a54ea6d602da96c691f36f46daed9e87153 /src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | |
parent | 21ddcc478f9e8423a5f8e61026cc797592e10858 (diff) |
add 'show avatar' to context menu in chat view
to show a bigger avatar
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index 4dcf0ba1d..d11b6ccdf 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -237,14 +237,14 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers startActivity(intent); }); this.binding.detailsMucAvatar.setOnLongClickListener(v -> { - ImageView view = new ImageView(ConferenceDetailsActivity.this); + final ImageView view = new ImageView(ConferenceDetailsActivity.this); view.setAdjustViewBounds(true); view.setMaxHeight(R.dimen.avatar_big); view.setMaxWidth(R.dimen.avatar_big); view.setBackgroundColor(Color.WHITE); view.setScaleType(ImageView.ScaleType.FIT_XY); AvatarWorkerTask.loadAvatar(mConversation, view, R.dimen.avatar_big); - AlertDialog.Builder builder = new AlertDialog.Builder(ConferenceDetailsActivity.this); + final AlertDialog.Builder builder = new AlertDialog.Builder(ConferenceDetailsActivity.this); builder.setView(view); builder.create().show(); return true; |