mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 09:01:55 +01:00
Xiaomi: Add upper/lower body workout activities
This commit is contained in:
parent
151f633247
commit
4deb5213f9
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user