mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Mi Band 8: Improve stress charts
This commit is contained in:
@@ -29,6 +29,10 @@ public class XiaomiStressSampleProvider extends AbstractSampleToTimeSampleProvid
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected StressSample convertSample(final XiaomiActivitySample sample) {
|
protected StressSample convertSample(final XiaomiActivitySample sample) {
|
||||||
|
if (sample.getStress() == 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return new XiaomiStressSample(
|
return new XiaomiStressSample(
|
||||||
sample.getTimestamp() * 1000L,
|
sample.getTimestamp() * 1000L,
|
||||||
sample.getStress()
|
sample.getStress()
|
||||||
|
Reference in New Issue
Block a user