mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user