|
|
@ -12,8 +12,6 @@ import android.content.BroadcastReceiver;
|
|
|
|
import android.content.ContentResolver;
|
|
|
|
import android.content.ContentResolver;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.database.Cursor;
|
|
|
|
|
|
|
|
import android.net.Uri;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.ical.iter.RecurrenceIterator;
|
|
|
|
import com.google.ical.iter.RecurrenceIterator;
|
|
|
|
import com.google.ical.iter.RecurrenceIteratorFactory;
|
|
|
|
import com.google.ical.iter.RecurrenceIteratorFactory;
|
|
|
@ -34,6 +32,7 @@ import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.gcal.GCalHelper;
|
|
|
|
import com.todoroo.astrid.gcal.GCalHelper;
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
|
|
|
|
import com.todoroo.astrid.service.TaskService;
|
|
|
|
import com.todoroo.astrid.utility.Flags;
|
|
|
|
import com.todoroo.astrid.utility.Flags;
|
|
|
|
|
|
|
|
|
|
|
|
public class RepeatTaskCompleteListener extends BroadcastReceiver {
|
|
|
|
public class RepeatTaskCompleteListener extends BroadcastReceiver {
|
|
|
@ -76,7 +75,7 @@ public class RepeatTaskCompleteListener extends BroadcastReceiver {
|
|
|
|
task.setValue(Task.COMPLETION_DATE, 0L);
|
|
|
|
task.setValue(Task.COMPLETION_DATE, 0L);
|
|
|
|
task.setValue(Task.DUE_DATE, newDueDate);
|
|
|
|
task.setValue(Task.DUE_DATE, newDueDate);
|
|
|
|
task.setValue(Task.HIDE_UNTIL, hideUntil);
|
|
|
|
task.setValue(Task.HIDE_UNTIL, hideUntil);
|
|
|
|
task.putTransitory("repeat-complete", true); //$NON-NLS-1$
|
|
|
|
task.putTransitory(TaskService.TRANS_REPEAT_COMPLETE, true);
|
|
|
|
|
|
|
|
|
|
|
|
ContentResolver cr = ContextManager.getContext().getContentResolver();
|
|
|
|
ContentResolver cr = ContextManager.getContext().getContentResolver();
|
|
|
|
GCalHelper.rescheduleRepeatingTask(task, cr);
|
|
|
|
GCalHelper.rescheduleRepeatingTask(task, cr);
|
|
|
|