Search in sources :

Example 1 with ContactRequestCard

use of cx.ring.tv.cards.contactrequests.ContactRequestCard in project ring-client-android by savoirfairelinux.

the class MainFragment method showContactRequests.

@Override
public void showContactRequests(final ArrayList<TVContactRequestViewModel> contactRequests) {
    contactRequestRowAdapter.clear();
    for (TVContactRequestViewModel contact : contactRequests) {
        contactRequestRowAdapter.add(new ContactRequestCard(contact));
    }
    contactRequestRowAdapter.notifyArrayItemRangeChanged(0, contactRequests.size());
    mRowsAdapter.notifyItemRangeChanged(2, 3);
}
Also used : TVContactRequestViewModel(cx.ring.tv.model.TVContactRequestViewModel) ContactRequestCard(cx.ring.tv.cards.contactrequests.ContactRequestCard)

Aggregations

ContactRequestCard (cx.ring.tv.cards.contactrequests.ContactRequestCard)1 TVContactRequestViewModel (cx.ring.tv.model.TVContactRequestViewModel)1