enabled TaskApiDao.insignificantChange in TaskDao.saveExisting and added Timeractions to it. Timeractions dont seem to overwrite producteev-changes during sync anymore, but please verify this is fixed.

pull/14/head
Arne Jans 14 years ago
parent 775d536896
commit d30d9f8eed

@ -150,6 +150,14 @@ public class TaskApiDao extends ContentResolverDao<Task> {
values.size() <= 2) values.size() <= 2)
return true; return true;
if(values.containsKey(Task.TIMER_START.name) &&
values.size() <= 2)
return true;
if(values.containsKey(Task.ELAPSED_SECONDS.name) &&
values.size() <= 2)
return true;
return false; return false;
} }

@ -218,11 +218,7 @@ public class TaskDao extends DatabaseDao<Task> {
ContentValues values = item.getSetValues(); ContentValues values = item.getSetValues();
if(values == null || values.size() == 0) if(values == null || values.size() == 0)
return false; return false;
if(!TaskApiDao.insignificantChange(values)) {
//
if(!item.getSetValues().containsKey(Task.DETAILS_DATE.name) &&
!item.getSetValues().containsKey(Task.REMINDER_LAST.name) &&
!item.getSetValues().containsKey(Task.REMINDER_SNOOZE.name)) {
item.setValue(Task.DETAILS, null); item.setValue(Task.DETAILS, null);
item.setValue(Task.MODIFICATION_DATE, DateUtilities.now()); item.setValue(Task.MODIFICATION_DATE, DateUtilities.now());
} }

Loading…
Cancel
Save