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

Xiaomi: Fix temperature charts crash

This commit is contained in:
José Rebelo 2024-03-18 09:09:18 +00:00
parent ee6340c848
commit fc88a4ea9b

View File

@ -30,7 +30,6 @@ import nodomain.freeyourgadget.gadgetbridge.entities.DaoSession;
import nodomain.freeyourgadget.gadgetbridge.entities.Device; import nodomain.freeyourgadget.gadgetbridge.entities.Device;
import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiManualSample; import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiManualSample;
import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiManualSampleDao; import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiManualSampleDao;
import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiSleepStageSampleDao;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class XiaomiManualSampleProvider extends AbstractTimeSampleProvider<XiaomiManualSample> { public class XiaomiManualSampleProvider extends AbstractTimeSampleProvider<XiaomiManualSample> {
@ -52,13 +51,13 @@ public class XiaomiManualSampleProvider extends AbstractTimeSampleProvider<Xiaom
@NonNull @NonNull
@Override @Override
protected Property getTimestampSampleProperty() { protected Property getTimestampSampleProperty() {
return XiaomiSleepStageSampleDao.Properties.Timestamp; return XiaomiManualSampleDao.Properties.Timestamp;
} }
@NonNull @NonNull
@Override @Override
protected Property getDeviceIdentifierSampleProperty() { protected Property getDeviceIdentifierSampleProperty() {
return XiaomiSleepStageSampleDao.Properties.DeviceId; return XiaomiManualSampleDao.Properties.DeviceId;
} }
@Override @Override