aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/entities/Contact.java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-14 17:13:59 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-14 17:13:59 +0200
commit6031af86062757f86701e08962aa86121877fbf4 (patch)
tree9bb335d4e5f92493ddb16f80ae01f577aa4b991f /src/eu/siacs/conversations/entities/Contact.java
parent3fa3d5f02ba954d87179c64cd75bd2ae7a749770 (diff)
use proper picture on bookmarked conferences when joined. use bookmark title when no subject is set
Diffstat (limited to 'src/eu/siacs/conversations/entities/Contact.java')
-rw-r--r--src/eu/siacs/conversations/entities/Contact.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Contact.java b/src/eu/siacs/conversations/entities/Contact.java
index fc990274..8f8e38a5 100644
--- a/src/eu/siacs/conversations/entities/Contact.java
+++ b/src/eu/siacs/conversations/entities/Contact.java
@@ -8,9 +8,12 @@ import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
+import eu.siacs.conversations.utils.UIHelper;
import eu.siacs.conversations.xml.Element;
import android.content.ContentValues;
+import android.content.Context;
import android.database.Cursor;
+import android.graphics.Bitmap;
public class Contact implements ListItem {
public static final String TABLENAME = "contacts";
@@ -311,4 +314,9 @@ public class Contact implements ListItem {
return null;
}
}
+
+ @Override
+ public Bitmap getImage(int dpSize, Context context) {
+ return UIHelper.getContactPicture(this, dpSize, context, false);
+ }
}