mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-30 19:15:54 +02:00
Fix method name
This commit is contained in:
parent
2c27f30575
commit
411a90326e
@ -33,7 +33,7 @@ public abstract class AbstractSampleProvider<T extends AbstractActivitySample> i
|
|||||||
mSession = session;
|
mSession = session;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GBDevice getmDevice() {
|
public GBDevice getDevice() {
|
||||||
return mDevice;
|
return mDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ public abstract class AbstractSampleProvider<T extends AbstractActivitySample> i
|
|||||||
}
|
}
|
||||||
QueryBuilder<T> qb = getSampleDao().queryBuilder();
|
QueryBuilder<T> qb = getSampleDao().queryBuilder();
|
||||||
Property timestampProperty = getTimestampSampleProperty();
|
Property timestampProperty = getTimestampSampleProperty();
|
||||||
Device dbDevice = DBHelper.findDevice(getmDevice(), getSession());
|
Device dbDevice = DBHelper.findDevice(getDevice(), getSession());
|
||||||
if (dbDevice == null) {
|
if (dbDevice == null) {
|
||||||
// no device, no samples
|
// no device, no samples
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
@ -36,7 +36,7 @@ public class PebbleHealthSampleProvider extends AbstractSampleProvider<PebbleHea
|
|||||||
public List<PebbleHealthActivitySample> getAllActivitySamples(int timestamp_from, int timestamp_to) {
|
public List<PebbleHealthActivitySample> getAllActivitySamples(int timestamp_from, int timestamp_to) {
|
||||||
List<PebbleHealthActivitySample> samples = super.getGBActivitySamples(timestamp_from, timestamp_to, ActivityKind.TYPE_ALL);
|
List<PebbleHealthActivitySample> samples = super.getGBActivitySamples(timestamp_from, timestamp_to, ActivityKind.TYPE_ALL);
|
||||||
|
|
||||||
Device dbDevice = DBHelper.findDevice(getmDevice(), getSession());
|
Device dbDevice = DBHelper.findDevice(getDevice(), getSession());
|
||||||
if (dbDevice == null) {
|
if (dbDevice == null) {
|
||||||
// no device, no samples
|
// no device, no samples
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
Loading…
Reference in New Issue
Block a user