|
|
|
@ -102,6 +102,7 @@ import com.todoroo.astrid.service.UpgradeService;
|
|
|
|
|
import com.todoroo.astrid.subtasks.SubtasksListFragment;
|
|
|
|
|
import com.todoroo.astrid.sync.SyncProviderPreferences;
|
|
|
|
|
import com.todoroo.astrid.taskrabbit.TaskRabbitMetadata;
|
|
|
|
|
import com.todoroo.astrid.timers.TimerPlugin;
|
|
|
|
|
import com.todoroo.astrid.ui.QuickAddBar;
|
|
|
|
|
import com.todoroo.astrid.utility.AstridPreferences;
|
|
|
|
|
import com.todoroo.astrid.utility.Constants;
|
|
|
|
@ -1133,6 +1134,7 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
|
|
onTaskDelete(task);
|
|
|
|
|
taskService.delete(task);
|
|
|
|
|
TimerPlugin.updateTimer(getActivity(), task, false);
|
|
|
|
|
loadTaskListContent(true);
|
|
|
|
|
}
|
|
|
|
|
}).setNegativeButton(android.R.string.cancel, null).show();
|
|
|
|
@ -1259,6 +1261,9 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
|
|
|
|
|
}
|
|
|
|
|
case CONTEXT_MENU_PURGE_TASK_ID: {
|
|
|
|
|
itemId = item.getGroupId();
|
|
|
|
|
Task task = new Task();
|
|
|
|
|
task.setId(itemId);
|
|
|
|
|
TimerPlugin.updateTimer(getActivity(), task, false);
|
|
|
|
|
taskService.purge(itemId);
|
|
|
|
|
loadTaskListContent(true);
|
|
|
|
|
return true;
|
|
|
|
|