Modernize AvailableForumsActivity

Turn list of available forums into a BriarRecyclerView with XML layout.
Allow to respond to forum invitations from the list of available forums.
The user can either accept or decline an invitation.
This commit is contained in:
Torsten Grote
2016-05-02 13:39:05 -03:00
parent 2cc621ed1b
commit bcfdd848a4
7 changed files with 237 additions and 93 deletions

View File

@@ -21,14 +21,14 @@ import static android.support.v7.util.SortedList.INVALID_POSITION;
public abstract class BaseContactListAdapter<VH extends BaseContactListAdapter.BaseContactHolder>
extends RecyclerView.Adapter<VH> {
protected SortedList<ContactListItem> contacts;
protected final SortedList<ContactListItem> contacts;
protected final OnItemClickListener listener;
protected Context ctx;
public BaseContactListAdapter(Context context, OnItemClickListener listener) {
this.ctx = context;
this.listener = listener;
this.contacts = new SortedList<ContactListItem>(ContactListItem.class,
this.contacts = new SortedList<>(ContactListItem.class,
new SortedListCallBacks());
}