1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-22 23:57:33 +01:00

Huawei: specify pace order

This commit is contained in:
Me7c7 2024-10-11 19:41:15 +03:00 committed by José Rebelo
parent 15f550d5a8
commit 0e6a3e13cc

View File

@ -357,7 +357,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser {
); );
List<HuaweiWorkoutDataSample> dataSamples = qbData.build().list(); List<HuaweiWorkoutDataSample> dataSamples = qbData.build().list();
QueryBuilder<HuaweiWorkoutPaceSample> qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().where( QueryBuilder<HuaweiWorkoutPaceSample> qbPace = session.getHuaweiWorkoutPaceSampleDao().queryBuilder().orderAsc(HuaweiWorkoutPaceSampleDao.Properties.PaceIndex).where(
HuaweiWorkoutPaceSampleDao.Properties.WorkoutId.eq(summary.getWorkoutId()) HuaweiWorkoutPaceSampleDao.Properties.WorkoutId.eq(summary.getWorkoutId())
); );
@ -697,7 +697,7 @@ public class HuaweiWorkoutGbParser implements ActivitySummaryParser {
if (pace > paceSlowest) if (pace > paceSlowest)
paceSlowest = pace; paceSlowest = pace;
double distance = sample.getDistance(); double distance = sample.getDistance();
if (sample.getCorrection() != null) { if (sample.getCorrection() != null) {