1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +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.XiaomiManualSample;
import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiManualSampleDao;
import nodomain.freeyourgadget.gadgetbridge.entities.XiaomiSleepStageSampleDao;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class XiaomiManualSampleProvider extends AbstractTimeSampleProvider<XiaomiManualSample> {
@ -52,13 +51,13 @@ public class XiaomiManualSampleProvider extends AbstractTimeSampleProvider<Xiaom
@NonNull
@Override
protected Property getTimestampSampleProperty() {
return XiaomiSleepStageSampleDao.Properties.Timestamp;
return XiaomiManualSampleDao.Properties.Timestamp;
}
@NonNull
@Override
protected Property getDeviceIdentifierSampleProperty() {
return XiaomiSleepStageSampleDao.Properties.DeviceId;
return XiaomiManualSampleDao.Properties.DeviceId;
}
@Override