|
|
@ -8,8 +8,8 @@ import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.net.Uri;
|
|
|
|
import android.provider.CalendarContract;
|
|
|
|
import android.provider.CalendarContract;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.reminders.ReminderService;
|
|
|
|
import com.todoroo.astrid.reminders.ReminderService;
|
|
|
|
import com.todoroo.astrid.repeats.RepeatTaskHelper;
|
|
|
|
import com.todoroo.astrid.repeats.RepeatTaskHelper;
|
|
|
@ -41,11 +41,14 @@ public class AfterSaveIntentService extends InjectingJobIntentService {
|
|
|
|
@Inject PushReceiver pushReceiver;
|
|
|
|
@Inject PushReceiver pushReceiver;
|
|
|
|
|
|
|
|
|
|
|
|
public static void enqueue(Context context, Task current, Task original) {
|
|
|
|
public static void enqueue(Context context, Task current, Task original) {
|
|
|
|
Intent intent = new Intent();
|
|
|
|
Intent intent = new Intent(context, AfterSaveIntentService.class);
|
|
|
|
intent.putExtra(EXTRA_CURRENT, current);
|
|
|
|
intent.putExtra(EXTRA_CURRENT, current);
|
|
|
|
intent.putExtra(EXTRA_ORIGINAL, original);
|
|
|
|
intent.putExtra(EXTRA_ORIGINAL, original);
|
|
|
|
AfterSaveIntentService.enqueueWork(
|
|
|
|
AfterSaveIntentService.enqueueWork(
|
|
|
|
context, AfterSaveIntentService.class, InjectingJobIntentService.JOB_ID_TASK_STATUS_CHANGE, intent);
|
|
|
|
context,
|
|
|
|
|
|
|
|
AfterSaveIntentService.class,
|
|
|
|
|
|
|
|
InjectingJobIntentService.JOB_ID_TASK_STATUS_CHANGE,
|
|
|
|
|
|
|
|
intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|