Xiaomi: Add upper/lower body workout activities

This commit is contained in:
Sebastian Dröge 2024-12-26 18:47:38 +02:00 committed by José Rebelo
parent 151f633247
commit 4deb5213f9
3 changed files with 10 additions and 0 deletions

View File

@ -295,6 +295,8 @@ public enum ActivityKind {
ORIENTEERING(0x040000f0, R.string.activity_type_orienteering),
TREKKING(0x040000f1, R.string.activity_type_trekking, R.drawable.ic_activity_hiking),
TRAIL_RUN(0x040000f2, R.string.activity_type_trail_run, R.drawable.ic_activity_trail_run),
UPPER_BODY(0x040000f3, R.string.activity_type_upper_body),
LOWER_BODY(0x040000ff, R.string.activity_type_lower_body),
;
private final int code;

View File

@ -157,6 +157,12 @@ public class XiaomiSimpleActivityParser {
case 310: // aerobics 0x0136
summary.setActivityKind(ActivityKind.AEROBICS.getCode());
break;
case 320: // upper body 0x0140
summary.setActivityKind(ActivityKind.UPPER_BODY.getCode());
break;
case 321: // lower body 0x0141
summary.setActivityKind(ActivityKind.LOWER_BODY.getCode());
break;
case 399: // indoor-Fitness 0x018f
summary.setActivityKind(ActivityKind.INDOOR_FITNESS.getCode());
break;

View File

@ -1623,6 +1623,8 @@
<string name="activity_type_biathlon">Biathlon</string>
<string name="activity_type_bungee_jumping">Bungee jumping</string>
<string name="activity_type_orienteering">Orienteering</string>
<string name="activity_type_upper_body">Upper body</string>
<string name="activity_type_lower_body">Lower body</string>
<string name="activity_summaries">Sport Activities</string>
<string name="activity_summary_detail">Sport Activity Detail</string>
<string name="activity_summary_edit_name_title">Edit label</string>