diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/HuaweiWorkoutGbParser.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/HuaweiWorkoutGbParser.java index 3a1cc6d2b..2e98d73d9 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/HuaweiWorkoutGbParser.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huawei/HuaweiWorkoutGbParser.java @@ -357,7 +357,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser { ); List dataSamples = qbData.build().list(); - QueryBuilder qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().where( + QueryBuilder qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().orderAsc(HuaweiWorkoutPaceSampleDao.Properties.PaceIndex).where( HuaweiWorkoutPaceSampleDao.Properties.WorkoutId.eq(summary.getWorkoutId()) ); @@ -697,7 +697,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser { if (pace > paceSlowest) paceSlowest = pace; - + double distance = sample.getDistance(); if (sample.getCorrection() != null) {