From 7c0c1b7e495c732772bec0f650facd08b1f69420 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Wed, 30 Mar 2016 22:54:05 +0200 Subject: Fixes FS#179: Avoid showing always empty list of ressources for mucs --- .../thedevstack/conversationsplus/ui/adapter/ConversationAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/de/thedevstack/conversationsplus/ui/adapter/ConversationAdapter.java b/src/main/java/de/thedevstack/conversationsplus/ui/adapter/ConversationAdapter.java index 53e1462f..79320fed 100644 --- a/src/main/java/de/thedevstack/conversationsplus/ui/adapter/ConversationAdapter.java +++ b/src/main/java/de/thedevstack/conversationsplus/ui/adapter/ConversationAdapter.java @@ -142,7 +142,9 @@ public class ConversationAdapter extends ArrayAdapter { mTimestamp.setText(UIHelper.readableTimeDifference(activity, message.getTimeSent())); ImageView profilePicture = (ImageView) view.findViewById(R.id.conversation_image); - profilePicture.setOnLongClickListener(new ShowResourcesListDialogListener(activity, conversation.getContact())); + if (conversation.getMode() == Conversation.MODE_SINGLE) { + profilePicture.setOnLongClickListener(new ShowResourcesListDialogListener(activity, conversation.getContact())); + } loadAvatar(conversation, profilePicture); return view; -- cgit v1.2.3