mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-23 02:16:48 +01:00
Huawei: Improve distanceCm
This commit is contained in:
parent
ae84678de8
commit
1882ee947e
@ -1336,7 +1336,7 @@ public class GBDaoGenerator {
|
||||
activitySample.addIntProperty("distance").notNull().codeBeforeGetter(
|
||||
"@Override\n" +
|
||||
" public int getDistanceCm() {\n" +
|
||||
" return getDistance() * 100;\n" +
|
||||
" return getDistance() == HuaweiActivitySample.NOT_MEASURED ? HuaweiActivitySample.NOT_MEASURED : getDistance() * 100;\n" +
|
||||
" }\n"
|
||||
);
|
||||
activitySample.addIntProperty("spo").notNull();
|
||||
|
Loading…
Reference in New Issue
Block a user