public static Recipients getRecipientsFromMessage( Context context, IncomingPushMessage message, boolean asynchronous) { Set<String> recipients = new HashSet<String>(); recipients.add(message.getSource()); recipients.addAll(message.getDestinations()); try { return getRecipientsFromString(context, Util.join(recipients, ","), asynchronous); } catch (RecipientFormattingException e) { Log.w("RecipientFactory", e); return new Recipients( new Recipient( "Unknown", "Unknown", null, ContactPhotoFactory.getDefaultContactPhoto(context))); } }
public static void clearCache() { ContactPhotoFactory.clearCache(); provider.clearCache(); }