|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package org.tasks.backup;
|
|
|
|
|
|
|
|
|
|
import static com.todoroo.astrid.dao.TaskDao.TRANS_SUPPRESS_REFRESH;
|
|
|
|
|
import static com.todoroo.astrid.data.SyncFlags.GTASKS_SUPPRESS_SYNC;
|
|
|
|
|
import static org.tasks.backup.TasksJsonExporter.UTF_8;
|
|
|
|
|
import static org.tasks.data.Place.newPlace;
|
|
|
|
|
|
|
|
|
@ -13,6 +15,7 @@ import com.google.gson.JsonElement;
|
|
|
|
|
import com.google.gson.JsonObject;
|
|
|
|
|
import com.todoroo.andlib.utility.DialogUtilities;
|
|
|
|
|
import com.todoroo.astrid.dao.TaskDao;
|
|
|
|
|
import com.todoroo.astrid.data.SyncFlags;
|
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
@ -179,6 +182,8 @@ public class TasksJsonImporter {
|
|
|
|
|
skipCount++;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
task.putTransitory(TRANS_SUPPRESS_REFRESH, true);
|
|
|
|
|
task.putTransitory(GTASKS_SUPPRESS_SYNC, true);
|
|
|
|
|
taskDao.createNew(task);
|
|
|
|
|
long taskId = task.getId();
|
|
|
|
|
String taskUuid = task.getUuid();
|
|
|
|
|