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

Partial revert of 5cfddbb7e9
master
Daniele Gobbetti 2016-08-09 20:05:42 +02:00
parent 4a7a34f461
commit 22d0387f76
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class PebbleHealthSampleProvider extends AbstractSampleProvider<PebbleHea
for (PebbleHealthActivityOverlay overlay : overlayRecords) {
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
sample.setRawKind(overlay.getRawKind());
}