mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 06:22:55 +01:00
Fix the comparison order again ,as it was correct originally.
Partial revert of 5cfddbb7e9
This commit is contained in:
parent
4a7a34f461
commit
22d0387f76
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user