diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java index 89e5f4a0f..a11c38380 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java @@ -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; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/XiaomiSimpleActivityParser.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/XiaomiSimpleActivityParser.java index 10722c24e..803db1723 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/XiaomiSimpleActivityParser.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/xiaomi/activity/impl/XiaomiSimpleActivityParser.java @@ -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; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f58c3d4cb..1f125c88f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1623,6 +1623,8 @@ Biathlon Bungee jumping Orienteering + Upper body + Lower body Sport Activities Sport Activity Detail Edit label