use of com.health.openscale.core.OpenScale in project openScale by oliexdev.
the class DataEntryActivity method saveScaleData.
private void saveScaleData() {
if (!isDirty) {
return;
}
OpenScale openScale = OpenScale.getInstance(getApplicationContext());
if (openScale.getSelectedScaleUserId() == -1) {
return;
}
if (scaleMeasurement.getId() > 0) {
openScale.updateScaleData(scaleMeasurement);
} else {
openScale.addScaleData(scaleMeasurement);
}
isDirty = false;
}
Aggregations