1
0
mirror of https://github.com/etesync/android synced 2025-01-11 08:10:58 +00:00

Extra icon for tasks in "Select collections" fragment

This commit is contained in:
Ricki Hirner 2015-05-27 12:03:48 +02:00
parent bc7e58232e
commit c3f7c1b97e

View File

@ -160,13 +160,16 @@ public class SelectCollectionsAdapter extends BaseAdapter implements ListAdapter
}
// step 2: fill view with content
int collectionIcon;
switch (viewType) {
case TYPE_ADDRESS_BOOKS_ROW:
setContent((CheckedTextView)v, R.drawable.addressbook, (ServerInfo.ResourceInfo)getItem(position));
break;
case TYPE_CALENDARS_ROW:
case TYPE_TASK_LISTS_ROW:
setContent((CheckedTextView)v, R.drawable.calendar, (ServerInfo.ResourceInfo) getItem(position));
break;
case TYPE_TASK_LISTS_ROW:
setContent((CheckedTextView)v, R.drawable.tasks, (ServerInfo.ResourceInfo) getItem(position));
}
// disable task list selection if there's no local task provider