1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Fix the comparison order again ,as it was correct originally.

Partial revert of 5cfddbb7e9
This commit is contained in:
Daniele Gobbetti 2016-08-09 20:05:42 +02:00
parent 4a7a34f461
commit 22d0387f76

View File

@ -48,7 +48,7 @@ public class PebbleHealthSampleProvider extends AbstractSampleProvider<PebbleHea
for (PebbleHealthActivityOverlay overlay : overlayRecords) { for (PebbleHealthActivityOverlay overlay : overlayRecords) {
for (PebbleHealthActivitySample sample : samples) { for (PebbleHealthActivitySample sample : samples) {
if (overlay.getTimestampFrom() >= sample.getTimestamp() && overlay.getTimestampTo() <= sample.getTimestamp()) { if (overlay.getTimestampFrom() <= sample.getTimestamp() && sample.getTimestamp() <= overlay.getTimestampTo()) {
// patch in the raw kind // patch in the raw kind
sample.setRawKind(overlay.getRawKind()); sample.setRawKind(overlay.getRawKind());
} }