fix bug in sync

This commit is contained in:
Milos Kozak 2017-06-07 08:09:15 +02:00
parent 8fab76ee9b
commit fec56e7c23

View file

@ -559,9 +559,15 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
}
}
}
getDaoTreatments().create(treatment);
log.debug("TREATMENT: New record from: " + Source.getString(treatment.source) + " " + treatment.toString());
updateEarliestDataChange(treatment.date);
scheduleTreatmentChange();
return true;
}
if (treatment.source == Source.USER) {
getDaoTreatments().create(treatment);
log.debug("TREATMENT: New record from: " + Source.getString(treatment.source) + " " + treatment.toString());
updateEarliestDataChange(treatment.date);
scheduleTreatmentChange();
return true;