|
|
|
@ -5,8 +5,6 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
package com.todoroo.astrid.gtasks;
|
|
|
|
package com.todoroo.astrid.gtasks;
|
|
|
|
|
|
|
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.todoroo.andlib.data.Property.IntegerProperty;
|
|
|
|
import com.todoroo.andlib.data.Property.IntegerProperty;
|
|
|
|
import com.todoroo.andlib.data.Property.LongProperty;
|
|
|
|
import com.todoroo.andlib.data.Property.LongProperty;
|
|
|
|
import com.todoroo.andlib.sql.Criterion;
|
|
|
|
import com.todoroo.andlib.sql.Criterion;
|
|
|
|
@ -42,9 +40,6 @@ public class GtasksTaskListUpdater {
|
|
|
|
/** map of task -> prior sibling */
|
|
|
|
/** map of task -> prior sibling */
|
|
|
|
final HashMap<Long, Long> siblings = new HashMap<>();
|
|
|
|
final HashMap<Long, Long> siblings = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
private final HashMap<Long, String> localToRemoteIdMap =
|
|
|
|
|
|
|
|
new HashMap<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final GtasksSyncService gtasksSyncService;
|
|
|
|
private final GtasksSyncService gtasksSyncService;
|
|
|
|
private final MetadataDao metadataDao;
|
|
|
|
private final MetadataDao metadataDao;
|
|
|
|
|
|
|
|
|
|
|
|
@ -151,9 +146,6 @@ public class GtasksTaskListUpdater {
|
|
|
|
|
|
|
|
|
|
|
|
previousTask.set(taskId);
|
|
|
|
previousTask.set(taskId);
|
|
|
|
previousIndent.set(indent);
|
|
|
|
previousIndent.set(indent);
|
|
|
|
if(!TextUtils.isEmpty(metadata.getValue(GtasksMetadata.ID))) {
|
|
|
|
|
|
|
|
localToRemoteIdMap.put(taskId, metadata.getValue(GtasksMetadata.ID));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|