Remove TRANS_ASSIGNED

pull/189/head
Alex Baker 11 years ago
parent 0b276c4b65
commit bcc55f7ef0

@ -3,7 +3,6 @@ package com.todoroo.astrid.service;
import com.todoroo.andlib.data.TodorooCursor; import com.todoroo.andlib.data.TodorooCursor;
import com.todoroo.andlib.sql.Query; import com.todoroo.andlib.sql.Query;
import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.DateUtilities;
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
import com.todoroo.astrid.dao.MetadataDao; import com.todoroo.astrid.dao.MetadataDao;
import com.todoroo.astrid.data.Metadata; import com.todoroo.astrid.data.Metadata;
import com.todoroo.astrid.data.SyncFlags; import com.todoroo.astrid.data.SyncFlags;
@ -35,9 +34,6 @@ public class TaskDuplicator {
original.setId(itemId); original.setId(itemId);
Task clone = clone(original); Task clone = clone(original);
String userId = clone.getUserID(); String userId = clone.getUserID();
if (!Task.USER_ID_SELF.equals(userId) && !ActFmPreferenceService.userId().equals(userId)) {
clone.putTransitory(TaskService.TRANS_ASSIGNED, true);
}
clone.setCreationDate(DateUtilities.now()); clone.setCreationDate(DateUtilities.now());
clone.setCompletionDate(0L); clone.setCompletionDate(0L);
clone.setDeletionDate(0L); clone.setDeletionDate(0L);

@ -60,8 +60,6 @@ public class TaskService {
public static final String TRANS_TAGS = "tags"; //$NON-NLS-1$ public static final String TRANS_TAGS = "tags"; //$NON-NLS-1$
public static final String TRANS_ASSIGNED = "task-assigned"; //$NON-NLS-1$
public static final String TRANS_EDIT_SAVE = "task-edit-save"; //$NON-NLS-1$ public static final String TRANS_EDIT_SAVE = "task-edit-save"; //$NON-NLS-1$
public static final String TRANS_REPEAT_COMPLETE = "repeat-complete"; //$NON-NLS-1$ public static final String TRANS_REPEAT_COMPLETE = "repeat-complete"; //$NON-NLS-1$
@ -341,10 +339,6 @@ public class TaskService {
task.mergeWithoutReplacement(forTask); task.mergeWithoutReplacement(forTask);
} }
if (!Task.USER_ID_SELF.equals(task.getUserID())) {
task.putTransitory(TRANS_ASSIGNED, true);
}
taskService.quickAdd(task, tags); taskService.quickAdd(task, tags);
if (quickAddMarkup) { if (quickAddMarkup) {
task.putTransitory(TRANS_QUICK_ADD_MARKUP, true); task.putTransitory(TRANS_QUICK_ADD_MARKUP, true);

Loading…
Cancel
Save