Fixed a task adapter bug when requerying on background thread

pull/14/head
Sam Bosley 13 years ago
parent b3f4d13902
commit 884636f872

@ -958,7 +958,7 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
loadTaskListContent(true); loadTaskListContent(true);
} }
protected Property<?>[] taskProperties() { public Property<?>[] taskProperties() {
return TaskAdapter.PROPERTIES; return TaskAdapter.PROPERTIES;
} }

@ -275,7 +275,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
// perform query // perform query
TodorooCursor<Task> newCursor = taskService.fetchFiltered( TodorooCursor<Task> newCursor = taskService.fetchFiltered(
query.get(), constraint, TaskAdapter.PROPERTIES); query.get(), constraint, fragment.taskProperties());
return newCursor; return newCursor;
} }

Loading…
Cancel
Save