use of cx.ring.tv.views.DetailsOverviewRowTarget in project ring-client-android by savoirfairelinux.
the class TVContactRequestFragment method setupDetailsOverviewRow.
private void setupDetailsOverviewRow() {
final DetailsOverviewRow row = new DetailsOverviewRow(mSelectedContactRequest);
Drawable contactPicture = AvatarFactory.getAvatar(getActivity(), mSelectedContactRequest.getPhoto(), mSelectedContactRequest.getDisplayName(), mSelectedContactRequest.getContactId());
Glide.with(this).load(contactPicture).apply(AvatarFactory.getGlideOptions(false, true)).into(new DetailsOverviewRowTarget(row, contactPicture));
SparseArrayObjectAdapter adapter = new SparseArrayObjectAdapter();
adapter.set(ACTION_ACCEPT, new Action(ACTION_ACCEPT, getResources().getString(R.string.accept)));
adapter.set(ACTION_REFUSE, new Action(ACTION_REFUSE, getResources().getString(R.string.refuse)));
adapter.set(ACTION_BLOCK, new Action(ACTION_BLOCK, getResources().getString(R.string.block)));
row.setActionsAdapter(adapter);
mAdapter.add(row);
}
Aggregations