Refactor existing adapters into a generic superclass

This commit also moves various blog classes into their own packages and
makes the required visibility changes.
This commit is contained in:
Torsten Grote
2016-10-03 19:29:14 -03:00
parent 9112d17a4b
commit b2fa039474
29 changed files with 305 additions and 615 deletions

View File

@@ -21,7 +21,8 @@ public class ContactChooserAdapter extends ContactListAdapter {
public void onBindViewHolder(final ContactHolder ui, final int position) {
super.onBindViewHolder(ui, position);
final ContactListItem item = getItem(position);
final ContactListItem item = getItemAt(position);
if (item == null) return;
ui.name.setText(item.getContact().getAuthor().getName());
@@ -34,7 +35,7 @@ public class ContactChooserAdapter extends ContactListAdapter {
}
@Override
public int compareContactListItems(ContactListItem c1, ContactListItem c2) {
public int compare(ContactListItem c1, ContactListItem c2) {
return compareByName(c1, c2);
}