|
|
@ -19,8 +19,6 @@ import com.commonsware.cwac.tlv.TouchListView.GrabberClickListener;
|
|
|
|
import com.commonsware.cwac.tlv.TouchListView.SwipeListener;
|
|
|
|
import com.commonsware.cwac.tlv.TouchListView.SwipeListener;
|
|
|
|
import com.todoroo.andlib.data.Property;
|
|
|
|
import com.todoroo.andlib.data.Property;
|
|
|
|
import com.todoroo.andlib.data.TodorooCursor;
|
|
|
|
import com.todoroo.andlib.data.TodorooCursor;
|
|
|
|
import com.todoroo.andlib.service.Autowired;
|
|
|
|
|
|
|
|
import com.todoroo.andlib.service.DependencyInjectionService;
|
|
|
|
|
|
|
|
import com.todoroo.andlib.utility.DateUtilities;
|
|
|
|
import com.todoroo.andlib.utility.DateUtilities;
|
|
|
|
import com.todoroo.andlib.utility.DialogUtilities;
|
|
|
|
import com.todoroo.andlib.utility.DialogUtilities;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
@ -53,15 +51,16 @@ public class OrderedMetadataListFragmentHelper<LIST> implements OrderedListFragm
|
|
|
|
private final OrderedMetadataListUpdater<LIST> updater;
|
|
|
|
private final OrderedMetadataListUpdater<LIST> updater;
|
|
|
|
private final TaskListFragment fragment;
|
|
|
|
private final TaskListFragment fragment;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired TaskService taskService;
|
|
|
|
private final TaskService taskService;
|
|
|
|
@Autowired MetadataService metadataService;
|
|
|
|
private final MetadataService metadataService;
|
|
|
|
|
|
|
|
|
|
|
|
private DraggableTaskAdapter taskAdapter;
|
|
|
|
private DraggableTaskAdapter taskAdapter;
|
|
|
|
|
|
|
|
|
|
|
|
private LIST list;
|
|
|
|
private LIST list;
|
|
|
|
|
|
|
|
|
|
|
|
public OrderedMetadataListFragmentHelper(TaskListFragment fragment, OrderedMetadataListUpdater<LIST> updater) {
|
|
|
|
public OrderedMetadataListFragmentHelper(TaskService taskService, MetadataService metadataService, TaskListFragment fragment, OrderedMetadataListUpdater<LIST> updater) {
|
|
|
|
DependencyInjectionService.getInstance().inject(this);
|
|
|
|
this.taskService = taskService;
|
|
|
|
|
|
|
|
this.metadataService = metadataService;
|
|
|
|
this.fragment = fragment;
|
|
|
|
this.fragment = fragment;
|
|
|
|
this.updater = updater;
|
|
|
|
this.updater = updater;
|
|
|
|
}
|
|
|
|
}
|
|
|
|