Exemplo n.º 1
0
  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)));
    }
  }
Exemplo n.º 2
0
 public static void clearCache() {
   ContactPhotoFactory.clearCache();
   provider.clearCache();
 }