diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-13 13:28:16 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-13 13:28:16 +0100 |
commit | 53fa87b414b87de73a79f0e60aa1a4d7d21c3dc9 (patch) | |
tree | 2984a7fa06196135a022e614b5ce01cc4eeec86c /src/eu/siacs/conversations/utils/UIHelper.java | |
parent | eec39066928c65bc7d2a36913ec21f83c5a763b6 (diff) |
removed unnecessary uihelper method
Diffstat (limited to 'src/eu/siacs/conversations/utils/UIHelper.java')
-rw-r--r-- | src/eu/siacs/conversations/utils/UIHelper.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 528a0bb2..544f9429 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -91,9 +91,9 @@ public class UIHelper { return bitmap; } - public static Bitmap getContactPicture(Contact contact, int size, Context context) { + public static Bitmap getContactPicture(Contact contact, String fallback, int size, Context context) { if (contact==null) { - return getUnknownContactPicture(contact.getDisplayName(), size); + return getUnknownContactPicture(fallback, size); } String uri = contact.getProfilePhoto(); if (uri==null) { @@ -171,7 +171,7 @@ public class UIHelper { conversation.getName(), (int) res .getDimension(android.R.dimen.notification_large_icon_width)));*/ - mBuilder.setLargeIcon(UIHelper.getContactPicture(conversation.getContact(), (int) res + mBuilder.setLargeIcon(UIHelper.getContactPicture(conversation.getContact(), conversation.getName(), (int) res .getDimension(android.R.dimen.notification_large_icon_width), context)); mBuilder.setContentTitle(conversation.getName()); if (notify) { @@ -315,8 +315,4 @@ public class UIHelper { } return getUnknownContactPicture(account.getJid(), size); } - - public static Bitmap getContactPictureByName(String name, int size) { - return getUnknownContactPicture(name, size); - } } |