From 56c7b6b1cb6d4375d0b40d484273fba9633a008e Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sun, 11 Sep 2016 12:35:26 +0200 Subject: [PATCH] fix sleep goal and step goal not being set in database (should fix user attribute table spamming) --- .../nodomain/freeyourgadget/gadgetbridge/database/DBHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/database/DBHelper.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/database/DBHelper.java index 1a4f67f28..3132792c4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/database/DBHelper.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/database/DBHelper.java @@ -266,6 +266,8 @@ public class DBHelper { attributes.setValidFromUTC(now.getTime()); attributes.setHeightCM(prefsUser.getHeightCm()); attributes.setWeightKG(prefsUser.getWeightKg()); + attributes.setSleepGoalHPD(prefsUser.getSleepDuration()); + attributes.setStepsGoalSPD(prefsUser.getStepsGoal()); attributes.setUserId(user.getId()); session.getUserAttributesDao().insert(attributes);