Beispiel #1
0
 public void setFriendsFeed(List<SocialAction> friendsFeed, Date date) {
   if (friendsFeed != null && friendsFeed.size() > 0) {
     mFriendsFeed.put(date, friendsFeed);
     SocialAction socialAction = friendsFeed.get(friendsFeed.size() - 1);
     if (socialAction != null) {
       if (socialAction.getDate().getTime() < date.getTime()) {
         mFriendsFeedNextDate = socialAction.getDate();
       }
     }
     fillPlaylist(mFriendsFeedPlaylist, mFriendsFeed, mFriendsFeedDoneConversions);
   }
 }
Beispiel #2
0
 public void setSocialActions(List<SocialAction> socialActions, Date date) {
   if (socialActions != null && socialActions.size() > 0) {
     mSocialActions.put(date, socialActions);
     SocialAction socialAction = socialActions.get(socialActions.size() - 1);
     if (socialAction != null) {
       if (socialAction.getDate().getTime() < date.getTime()) {
         mSocialActionsNextDate = socialAction.getDate();
       }
     }
     fillPlaylist(mSocialActionsPlaylist, mSocialActions, mSocialActionsDoneConversions);
   }
 }