1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 10:05:49 +01:00

Group new Huawei workout activity entries

This commit is contained in:
Martin.JM 2024-03-26 23:36:57 +01:00
parent ff37766510
commit 83d2aaf30e
2 changed files with 12 additions and 4 deletions

View File

@ -191,12 +191,14 @@ public class ActivitySummaryJsonSummary {
// NB: Default group Activity must be present in this definition, otherwise it wouldn't
// be shown.
put("Activity", Arrays.asList(
DISTANCE_METERS, STEPS, ACTIVE_SECONDS, CALORIES_BURNT, STRIDE_TOTAL,
HR_AVG, HR_MAX, HR_MIN, STRIDE_AVG, STRIDE_MAX, STRIDE_MIN
DISTANCE_METERS, STEPS, STEP_RATE_SUM, ACTIVE_SECONDS, CALORIES_BURNT,
STRIDE_TOTAL, HR_AVG, HR_MAX, HR_MIN, STRIDE_AVG, STRIDE_MAX, STRIDE_MIN,
STEP_LENGTH_AVG
));
put("Speed", Arrays.asList(
SPEED_AVG, SPEED_MAX, SPEED_MIN, PACE_AVG_SECONDS_KM, PACE_MIN,
PACE_MAX, "averageSpeed2", CADENCE_AVG, CADENCE_MAX, CADENCE_MIN
PACE_MAX, "averageSpeed2", CADENCE_AVG, CADENCE_MAX, CADENCE_MIN,
STEP_RATE_AVG
));
put("Elevation", Arrays.asList(
ASCENT_METERS, DESCENT_METERS, ALTITUDE_MAX, ALTITUDE_MIN, ALTITUDE_AVG,
@ -212,7 +214,7 @@ public class ActivitySummaryJsonSummary {
STROKE_RATE_AVG, STROKE_RATE_MAX
));
put("Swimming", Arrays.asList(
SWOLF_INDEX, SWIM_STYLE
SWOLF_INDEX, SWOLF_AVG, SWOLF_MAX, SWOLF_MIN, SWIM_STYLE
));
put("TrainingEffect", Arrays.asList(
TRAINING_EFFECT_AEROBIC, TRAINING_EFFECT_ANAEROBIC, WORKOUT_LOAD,
@ -221,6 +223,11 @@ public class ActivitySummaryJsonSummary {
put("laps", Arrays.asList(
LAP_PACE_AVERAGE, LAPS, LANE_LENGTH
));
put("RunningForm", Arrays.asList(
GROUND_CONTACT_TIME_AVG, IMPACT_AVG, IMPACT_MAX, SWING_ANGLE_AVG,
FORE_FOOT_LANDINGS, MID_FOOT_LANDINGS, BACK_FOOT_LANDINGS,
EVERSION_ANGLE_AVG, EVERSION_ANGLE_MAX
));
}};
return new JSONObject(groupDefinitions);

View File

@ -1935,6 +1935,7 @@
<string name="Speed">Speed</string>
<string name="Activity">Activity</string>
<string name="Steps">Steps</string>
<string name="RunningForm">Running Form</string>
<!-- Sports Activity Detail -->
<string name="activity_detail_start_label">Start</string>
<string name="activity_detail_end_label">End</string>