From 1fd426c09d6cc97d7bb75bc82078e41ad01a995b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Wed, 18 Sep 2024 20:48:01 +0100 Subject: [PATCH] VO2 Max: Cleanup duplicated strings --- .../activities/charts/ActivityChartsActivity.java | 2 +- .../gadgetbridge/activities/charts/VO2MaxFragment.java | 2 +- .../activities/dashboard/DashboardVO2MaxAnyWidget.java | 2 +- app/src/main/res/layout/fragment_vo2max.xml | 4 ++-- app/src/main/res/values/arrays.xml | 4 ++-- app/src/main/res/values/strings.xml | 7 ++----- 6 files changed, 9 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java index fff96e34e..4c5eccf7d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/ActivityChartsActivity.java @@ -213,7 +213,7 @@ public class ActivityChartsActivity extends AbstractChartsActivity { case "bodyenergy": return getString(R.string.body_energy); case "vo2max": - return getString(R.string.vo2max); + return getString(R.string.menuitem_vo2_max); case "stress": return getString(R.string.menuitem_stress); case "pai": diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java index 3242762ef..0b2330113 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/VO2MaxFragment.java @@ -106,7 +106,7 @@ public class VO2MaxFragment extends AbstractChartFragment + android:text="@string/activity_type_running" /> + android:text="@string/title_cycling" /> diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 595edaa03..fe625da62 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -3041,7 +3041,7 @@ @string/weekstepschart_steps_a_week_or_month @string/pref_header_hrv_status @string/body_energy - @string/vo2max + @string/menuitem_vo2_max @string/menuitem_stress @string/menuitem_pai @string/stats_title @@ -4181,7 +4181,7 @@ @string/menuitem_stress_segmented @string/menuitem_stress_breakdown @string/hrv - @string/vo2max + @string/menuitem_vo2_max @string/vo2max_running @string/vo2max_cycling diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 76b65957d..c8a42363c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1623,8 +1623,6 @@ %1$d ms %1$d-%2$d ms Baseline - Running - Cycling %1$d bpm %1$,.2f km Gained @@ -2532,9 +2530,8 @@ Blood Oxygen HRV Status Body Energy - VO2 Max - VO2 Max (Running) - VO2 Max (Cycling) + Running VO₂ Max + Cycling VO₂ Max 30 Days Timeline Ambient Sound Control Sound Control