From 9e2d32c33f2c22ed091501e01abb0d54a4b2e230 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Mon, 1 Jun 2015 14:17:35 +0200 Subject: [PATCH] Fixed timestamp conversion for DB, added local variables to make the code clearer --- .../gadgetbridge/miband/MiBandSupport.java | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandSupport.java index 984f8580..eaa3ccd0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandSupport.java @@ -498,19 +498,25 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport { private void flushActivityDataHolder() { GregorianCalendar timestamp = this.activityDataTimestampProgress; + byte category, intensity, steps; + for (int i=0; i