Skip to content

Commit

Permalink
Minor fix to not dupe RTM tasks on clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Su committed Mar 4, 2011
1 parent 3f9c957 commit e013e7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions astrid/src/com/todoroo/astrid/service/TaskService.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.weloveastrid.rmilk.data.MilkTaskFields;

import android.content.ContentValues;

import com.todoroo.andlib.data.Property;
Expand Down Expand Up @@ -115,6 +117,8 @@ public Task clone(Task task) {
continue;
if(ProducteevTask.METADATA_KEY.equals(metadata.getValue(Metadata.KEY)))
continue;
if(MilkTaskFields.METADATA_KEY.equals(metadata.getValue(Metadata.KEY)))
continue;

metadata.setValue(Metadata.TASK, newId);
metadata.clearValue(Metadata.ID);
Expand Down
2 changes: 1 addition & 1 deletion astrid/src/com/todoroo/astrid/service/UpgradeService.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void showChangeLog(Context context, int from) {
StringBuilder changeLog = new StringBuilder();

if(from <= V2_14_4) {
newVersionString(changeLog, "3.6.0 (11/13/10)", new String[] {
newVersionString(changeLog, "3.7.2 (3/04/11)", new String[] {
"Astrid is brand new inside and out! In addition to a new " +
"look and feel, a new add-on system allows Astrid to become " +
"more powerful, while other improvements have made it faster " +
Expand Down

0 comments on commit e013e7e

Please sign in to comment.