From bac9c8b2397b24a0095af54ed2f0b97df7797281 Mon Sep 17 00:00:00 2001
From: AndrewP <>
Date: Fri, 20 Dec 2024 13:31:36 +0100
Subject: [PATCH] Activity icons for stretching, free training, outdoor walking
and trail run
---
.../gadgetbridge/model/ActivityKind.java | 10 +++++-----
.../main/res/drawable/ic_activity_free_training.xml | 10 ++++++++++
.../main/res/drawable/ic_activity_outdoor_walking.xml | 10 ++++++++++
app/src/main/res/drawable/ic_activity_stretching.xml | 10 ++++++++++
app/src/main/res/drawable/ic_activity_trail_run.xml | 10 ++++++++++
5 files changed, 45 insertions(+), 5 deletions(-)
create mode 100644 app/src/main/res/drawable/ic_activity_free_training.xml
create mode 100644 app/src/main/res/drawable/ic_activity_outdoor_walking.xml
create mode 100644 app/src/main/res/drawable/ic_activity_stretching.xml
create mode 100644 app/src/main/res/drawable/ic_activity_trail_run.xml
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 10ed5b732..89e5f4a0f 100644
--- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java
+++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/model/ActivityKind.java
@@ -150,7 +150,7 @@ public enum ActivityKind {
DANCE(0x0400005c, R.string.activity_type_dance),
MOUNTAIN_HIKE(0x040000e2, R.string.activity_type_mountain_hike, R.drawable.ic_activity_climbing),
CROSS_TRAINER(0x0400005d, R.string.activity_type_cross_trainer),
- FREE_TRAINING(0x0400005e, R.string.activity_type_free_training),
+ FREE_TRAINING(0x0400005e, R.string.activity_type_free_training, R.drawable.ic_activity_free_training),
DYNAMIC_CYCLE(0x0400005f, R.string.activity_type_dynamic_cycle),
KICKBOXING(0x04000060, R.string.activity_type_kickboxing),
FITNESS_EXERCISES(0x04000061, R.string.activity_type_fitness_exercises),
@@ -231,7 +231,7 @@ public enum ActivityKind {
PARKOUR(0x040000af, R.string.activity_type_parkour),
INDOOR_RUNNING(0x040000b0, R.string.activity_type_indoor_running, R.drawable.ic_activity_indoor_running),
OUTDOOR_RUNNING(0x040000b1, R.string.activity_type_outdoor_running, R.drawable.ic_activity_running),
- OUTDOOR_WALKING(0x040000b2, R.string.activity_type_outdoor_walking, R.drawable.ic_activity_hiking),
+ OUTDOOR_WALKING(0x040000b2, R.string.activity_type_outdoor_walking, R.drawable.ic_activity_outdoor_walking),
OUTDOOR_CYCLING(0x040000b3, R.string.activity_type_outdoor_cycling, R.drawable.ic_activity_biking),
AEROBIC_COMBO(0x040000b4, R.string.activity_type_aerobic_combo),
AEROBICS(0x040000b5, R.string.activity_type_aerobics),
@@ -274,7 +274,7 @@ public enum ActivityKind {
SQUARE_DANCE(0x040000da, R.string.activity_type_square_dance),
STAIR_CLIMBER(0x040000db, R.string.activity_type_stair_climber),
STEPPER(0x040000dc, R.string.activity_type_stepper),
- STRETCHING(0x040000dd, R.string.activity_type_stretching),
+ STRETCHING(0x040000dd, R.string.activity_type_stretching, R.drawable.ic_activity_stretching),
TABLE_FOOTBALL(0x040000de, R.string.activity_type_table_football),
TUG_OF_WAR(0x040000df, R.string.activity_type_tug_of_war),
WALL_BALL(0x040000e0, R.string.activity_type_wall_ball),
@@ -293,8 +293,8 @@ public enum ActivityKind {
BIATHLON(0x040000ee, R.string.activity_type_biathlon),
BUNGEE_JUMPING(0x040000ef, R.string.activity_type_bungee_jumping),
ORIENTEERING(0x040000f0, R.string.activity_type_orienteering),
- TREKKING(0x040000f1, R.string.activity_type_trekking),
- TRAIL_RUN(0x040000f2, R.string.activity_type_trail_run),
+ 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),
;
private final int code;
diff --git a/app/src/main/res/drawable/ic_activity_free_training.xml b/app/src/main/res/drawable/ic_activity_free_training.xml
new file mode 100644
index 000000000..2cb6b97a5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_activity_free_training.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_activity_outdoor_walking.xml b/app/src/main/res/drawable/ic_activity_outdoor_walking.xml
new file mode 100644
index 000000000..c45b081eb
--- /dev/null
+++ b/app/src/main/res/drawable/ic_activity_outdoor_walking.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_activity_stretching.xml b/app/src/main/res/drawable/ic_activity_stretching.xml
new file mode 100644
index 000000000..713cc99b7
--- /dev/null
+++ b/app/src/main/res/drawable/ic_activity_stretching.xml
@@ -0,0 +1,10 @@
+
+
+
diff --git a/app/src/main/res/drawable/ic_activity_trail_run.xml b/app/src/main/res/drawable/ic_activity_trail_run.xml
new file mode 100644
index 000000000..0ff3c0ed3
--- /dev/null
+++ b/app/src/main/res/drawable/ic_activity_trail_run.xml
@@ -0,0 +1,10 @@
+
+
+