mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Huawei: Improve distanceCm
This commit is contained in:
parent
29189bac93
commit
20eabcd283
@ -1333,7 +1333,7 @@ public class GBDaoGenerator {
|
|||||||
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(
|
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(
|
||||||
"@Override\n" +
|
"@Override\n" +
|
||||||
" public int getDistanceCm() {\n" +
|
" public int getDistanceCm() {\n" +
|
||||||
" return getDistance() * 100;\n" +
|
" return getDistance() == HuaweiActivitySample.NOT_MEASURED ? HuaweiActivitySample.NOT_MEASURED : getDistance() * 100;\n" +
|
||||||
" }\n"
|
" }\n"
|
||||||
);
|
);
|
||||||
activitySample.addIntProperty("spo").notNull();
|
activitySample.addIntProperty("spo").notNull();
|
||||||
|
Loading…
Reference in New Issue
Block a user