mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 04:16:49 +01:00
Huawei: Use watch distance and calories
Thanks to Martin.JM for the patch
This commit is contained in:
parent
9c67a30835
commit
cbd6fe2145
@ -1272,8 +1272,18 @@ public class GBDaoGenerator {
|
||||
activitySample.addIntProperty(SAMPLE_RAW_KIND).notNull().codeBeforeGetterAndSetter(OVERRIDE);
|
||||
activitySample.addIntProperty(SAMPLE_RAW_INTENSITY).notNull().codeBeforeGetterAndSetter(OVERRIDE);
|
||||
activitySample.addIntProperty(SAMPLE_STEPS).notNull().codeBeforeGetterAndSetter(OVERRIDE);
|
||||
activitySample.addIntProperty("calories").notNull();
|
||||
activitySample.addIntProperty("distance").notNull();
|
||||
activitySample.addIntProperty("calories").notNull().codeBeforeGetter(
|
||||
"@Override\n" +
|
||||
" public int getActiveCalories() {\n" +
|
||||
" return getCalories();\n" +
|
||||
" }\n"
|
||||
);
|
||||
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(
|
||||
"@Override\n" +
|
||||
" public int getDistanceCm() {\n" +
|
||||
" return getDistance() * 100;\n" +
|
||||
" }\n"
|
||||
);
|
||||
activitySample.addIntProperty("spo").notNull();
|
||||
activitySample.addIntProperty("heartRate").notNull();
|
||||
return activitySample;
|
||||
|
Loading…
Reference in New Issue
Block a user