diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 22:40:56 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-14 22:40:56 +0100 |
commit | b1a3d09ca6a4be59b57e2f7b1cdc8a245d60a858 (patch) | |
tree | ca6d7f5eafd7bbe3deff4e9ad7a1f4a9a0a77bf3 /src/eu/siacs/conversations/ui/ShareWithActivity.java | |
parent | 4e4a767743a62d1f88814e5cf024bf983772df2c (diff) |
use conference subject to identiy room
Diffstat (limited to 'src/eu/siacs/conversations/ui/ShareWithActivity.java')
-rw-r--r-- | src/eu/siacs/conversations/ui/ShareWithActivity.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/ShareWithActivity.java b/src/eu/siacs/conversations/ui/ShareWithActivity.java index 81616212..51bad721 100644 --- a/src/eu/siacs/conversations/ui/ShareWithActivity.java +++ b/src/eu/siacs/conversations/ui/ShareWithActivity.java @@ -13,8 +13,10 @@ import eu.siacs.conversations.entities.Contact; import eu.siacs.conversations.entities.Conversation; import eu.siacs.conversations.utils.UIHelper; import android.content.Intent; +import android.content.SharedPreferences; import android.graphics.Bitmap; import android.os.Bundle; +import android.preference.PreferenceManager; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; @@ -66,6 +68,9 @@ public class ShareWithActivity extends XmppActivity { @Override void onBackendConnected() { + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); + boolean useSubject = preferences.getBoolean("use_subject_in_muc", true); + Set<String> displayedContacts = new HashSet<String>(); conversations.removeAllViews(); List<Conversation> convList = xmppConnectionService.getConversations(); @@ -76,7 +81,7 @@ public class ShareWithActivity extends XmppActivity { } }); for(final Conversation conversation : convList) { - View view = createContactView(conversation.getName(), conversation.getLatestMessage().getBody().trim(), UIHelper.getContactPicture(conversation.getContact(),conversation.getName(), 90,this.getApplicationContext())); + View view = createContactView(conversation.getName(useSubject), conversation.getLatestMessage().getBody().trim(), UIHelper.getContactPicture(conversation.getContact(),conversation.getName(useSubject), 90,this.getApplicationContext())); view.setOnClickListener(new OnClickListener() { @Override |