From 4899780f6f12c6f698bac4c01d01129ff0d61ca7 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 19 Sep 2012 15:18:04 -0700 Subject: [PATCH] Fixed a bug in the metadata migration --- .../com/todoroo/astrid/tags/Astrid44SyncMigrator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/tags/Astrid44SyncMigrator.java b/astrid/plugin-src/com/todoroo/astrid/tags/Astrid44SyncMigrator.java index 5b7afbec6..c75ef14e1 100644 --- a/astrid/plugin-src/com/todoroo/astrid/tags/Astrid44SyncMigrator.java +++ b/astrid/plugin-src/com/todoroo/astrid/tags/Astrid44SyncMigrator.java @@ -95,12 +95,12 @@ public class Astrid44SyncMigrator { m.readFromCursor(incompleteMetadata); boolean changes = false; - if (!m.containsNonNullValue(TagMetadata.TASK_UUID) && m.getValue(TagMetadata.TASK_UUID) == 0) { + if (!m.containsNonNullValue(TagMetadata.TASK_UUID) || m.getValue(TagMetadata.TASK_UUID) == 0) { updateTaskUuid(m); changes = true; } - if (!m.containsNonNullValue(TagMetadata.TAG_UUID) && m.getValue(TagMetadata.TAG_UUID) == 0) { + if (!m.containsNonNullValue(TagMetadata.TAG_UUID) || m.getValue(TagMetadata.TAG_UUID) == 0) { updateTagUuid(m); changes = true; }