mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-06 06:25:20 +02:00
Set HPlus Sleep Intensity to 10%
This commit is contained in:
parent
75089d7cb4
commit
11b48e7a1a
@ -193,6 +193,9 @@ public class HPlusHealthSampleProvider extends AbstractSampleProvider<HPlusHealt
|
|||||||
for (HPlusHealthActivitySample sample : samples) {
|
for (HPlusHealthActivitySample sample : samples) {
|
||||||
|
|
||||||
if (sample.getTimestamp() >= overlay.getTimestampFrom() && sample.getTimestamp() < overlay.getTimestampTo()) {
|
if (sample.getTimestamp() >= overlay.getTimestampFrom() && sample.getTimestamp() < overlay.getTimestampTo()) {
|
||||||
|
if(overlay.getRawKind() == ActivityKind.TYPE_LIGHT_SLEEP || overlay.getRawKind() == ActivityKind.TYPE_DEEP_SLEEP)
|
||||||
|
sample.setRawIntensity(10);
|
||||||
|
|
||||||
sample.setRawKind(overlay.getRawKind());
|
sample.setRawKind(overlay.getRawKind());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user