From 45aede14bd7d384e8adbcd6697ba39b1dcbf77b4 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Mon, 22 Sep 2014 13:23:35 +0200 Subject: [PATCH] fixed #452 --- res/values/strings.xml | 4 +++- res/xml/preferences.xml | 5 +++++ src/eu/siacs/conversations/ui/ConversationActivity.java | 6 +++++- src/eu/siacs/conversations/ui/ConversationFragment.java | 6 +++++- src/eu/siacs/conversations/ui/XmppActivity.java | 7 +++++++ .../conversations/ui/adapter/ConversationAdapter.java | 6 +++++- 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index be76c1408..8d976dcef 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -259,5 +259,7 @@ Received masseges will be marked with a green tick. Be aware that this might no work in every case. Colorize send button to indicate contact status Other + Conference name + Use room’s subject instead of JID to identify conferences - + \ No newline at end of file diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 3dab09592..024335f15 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -63,6 +63,11 @@ android:title="@string/pref_notification_grace_period" /> + { } TextView convName = (TextView) view .findViewById(R.id.conversation_name); - convName.setText(conv.getName()); + if (conv.getMode() == Conversation.MODE_SINGLE || activity.useSubjectToIdentifyConference()) { + convName.setText(conv.getName()); + } else { + convName.setText(conv.getContactJid().split("/")[0]); + } TextView convLastMsg = (TextView) view .findViewById(R.id.conversation_lastmsg); ImageView imagePreview = (ImageView) view