diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-07-31 15:09:34 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-07-31 15:09:34 +0200 |
commit | 990f0f6d73b1c63dd61c824a6b73ba056e2de75c (patch) | |
tree | 8cede5df931e5d335eebc34e95c780dbc3ce9ac1 /src/eu/siacs/conversations/entities | |
parent | 27b306444bf11ca214e3fed7b54745bb323b31a9 (diff) |
refactored account array adapter into seperate class. added account image
Diffstat (limited to 'src/eu/siacs/conversations/entities')
-rw-r--r-- | src/eu/siacs/conversations/entities/Account.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/entities/Account.java b/src/eu/siacs/conversations/entities/Account.java index 5883788f..2be03ab1 100644 --- a/src/eu/siacs/conversations/entities/Account.java +++ b/src/eu/siacs/conversations/entities/Account.java @@ -12,10 +12,12 @@ import org.json.JSONException; import org.json.JSONObject; import eu.siacs.conversations.crypto.OtrEngine; +import eu.siacs.conversations.utils.UIHelper; import eu.siacs.conversations.xmpp.XmppConnection; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; +import android.graphics.Bitmap; public class Account extends AbstractEntity{ @@ -318,4 +320,8 @@ public class Account extends AbstractEntity{ } return false; } + + public Bitmap getImage(Context context, int size) { + return UIHelper.getContactPicture(getJid(), size, context, false); + } } |