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:
parent
ee6340c848
commit
fc88a4ea9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user